|
Subject: [xsl] how to walk nodes From: Dmitri Ilyin <dmitri.ilyin@xxxxxxxxx> Date: Thu, 13 Sep 2001 17:32:17 +0200 |
Hi *,
I'd like to build a template that gives me "path" of parent nodes
for example:
XML
<components>
<component name="comp1">
<some_node1>
<component name="comp2">
</component>
</some_node1>
<some_node2>
<some_node3>
<component name="comp3">
<some_node>
</component>
</some_node3>
</some_node2>
</component>
</components>
XSL
<xsl:template match="some_node">
hier walk through parent nodes
</xsl:template>
output:
"comp1/comp3"
all parent nodes are named "component" and can not be children of each other
thanks for advise
Dmitri
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] looping without changing , David Carlisle | Thread | Re: [xsl] how to walk nodes, Jörg Heinicke |
| RE: [xsl] XSL Javascript prob, P Vikram | Date | [xsl] dynamicaly build select expre, Dmitri Ilyin |
| Month |