Sunday, June 17, 2007

XSL: Accessing child or parent node

For example, accessing the child node which the column_node_01 equal to 'a' :
<xsl value="parent_node[child_column_node_01='a']/child_column_node_02"/>

From child node, accessing the parent node, as easy as :
<xsl value="../../parent_column_node_01"/>

It's easy playing with XML/XSL.... :)

2 comments:

Anonymous said...

Nice dispatch and this mail helped me alot in my college assignement. Gratefulness you for your information.

Anonymous said...

Well I to but I about the brief should acquire more info then it has.