R
Rolf Kemper
Dear Experts,
I have very often the following problem (but never really solved it in
a good way)
I have a table on SQL Server which holds the relations bettween a tree
of objects like the example below.
Parent Child
a b
a c
a d
b e
b f
f g
e h
e i
The xml crerated fro SQL Server could look like this
<LinkList>
<T P="a" C="b"/>
<T P="a" C="c"/>
<T P="a" C="d"/>
<T P="b" C="e"/>
<T P="b" C="f"/>
<T P="f" C="g"/>
<T P="e" C="h"/>
<T P="e" C="i"/>
</LinkList>
Now I would like to do an XSLT which creates a real tree out of that
(eg to show the tree as a tree in HTML)
<Tree>
<a>
<b>
<e>
<h>
</h>
<i>
</i>
<f>
<g>
</g>
</f>
</b>
<c>
</c>
<d>
</d>
</a>
</Tree>
In my imagination it would be easy if I could reference to the result
of the XSLT output (FO) under processing. But I do not see how. There
are probably several ways to achive such a list->tree translation.
Any help is highly welcome as I'm still at a beginner level regrading
XSLT.
Thanks a lot
I have very often the following problem (but never really solved it in
a good way)
I have a table on SQL Server which holds the relations bettween a tree
of objects like the example below.
Parent Child
a b
a c
a d
b e
b f
f g
e h
e i
The xml crerated fro SQL Server could look like this
<LinkList>
<T P="a" C="b"/>
<T P="a" C="c"/>
<T P="a" C="d"/>
<T P="b" C="e"/>
<T P="b" C="f"/>
<T P="f" C="g"/>
<T P="e" C="h"/>
<T P="e" C="i"/>
</LinkList>
Now I would like to do an XSLT which creates a real tree out of that
(eg to show the tree as a tree in HTML)
<Tree>
<a>
<b>
<e>
<h>
</h>
<i>
</i>
<f>
<g>
</g>
</f>
</b>
<c>
</c>
<d>
</d>
</a>
</Tree>
In my imagination it would be easy if I could reference to the result
of the XSLT output (FO) under processing. But I do not see how. There
are probably several ways to achive such a list->tree translation.
Any help is highly welcome as I'm still at a beginner level regrading
XSLT.
Thanks a lot