R
Ruthless
Hello.
I've got a question.
I've got family tree in XML.
It looks like this
<generation level="2">
<single><person>...</single>
<marriage><preson>...</person><person>....</person></marriage>
<person> inside single and marriage is the same element,
marriage has 2 elements of <person>(quite obvious )
I've got XSLT displaying all persons(single and marriage both) from all
levels but i'd also like to display their level in family tree.
e.g.
<tr><td>first_name</td><td>last_name</td><td> level</td> ... etc... </tr>
But i don'y know how to ommit the <single> or <marriage> element and go
straight to generation@level
Generation is recursive, <marriage> can have <children> who strats new
<generation> of level="parents_level+1"
And the second question how can i check whether or not <person> is inside
<single who="name1"> or <marriage who="name1 with name2"> element and how to
get the @who attribute?
thanx in advance
greetings R
I've got a question.
I've got family tree in XML.
It looks like this
<generation level="2">
<single><person>...</single>
<marriage><preson>...</person><person>....</person></marriage>
<person> inside single and marriage is the same element,
marriage has 2 elements of <person>(quite obvious )
I've got XSLT displaying all persons(single and marriage both) from all
levels but i'd also like to display their level in family tree.
e.g.
<tr><td>first_name</td><td>last_name</td><td> level</td> ... etc... </tr>
But i don'y know how to ommit the <single> or <marriage> element and go
straight to generation@level
Generation is recursive, <marriage> can have <children> who strats new
<generation> of level="parents_level+1"
And the second question how can i check whether or not <person> is inside
<single who="name1"> or <marriage who="name1 with name2"> element and how to
get the @who attribute?
thanx in advance
greetings R