This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
regarding variables and axis
- From: "william locksman" <vsd18 at rediffmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: 22 Mar 2002 15:23:54 -0000
- Subject: [xsl] regarding variables and axis
- Reply-to: xsl-list at lists dot mulberrytech dot com
Dear members
The following are my questions.
1.Will unnecesary variable declaration contribute to any overhead
in terms of processing performance etc??
2.if i have an xml structure like this:
<root>
<parentelement>
<childelement1>text in child1</childelement1>
<childelement>
<name></name>
</childelement>
</parentelement>
</root>
If context node is <name>(i got there through a for loop),then how
do i print the text in <childelement1>
i understand ancestor would not get me to childelement1..
how do i then reach to main element..
alternatively i thought of a solution of getting there through
ancestor::parentelement/childelement1/text()
It works but i am not sure if it is the right way to do it.
any suggestions regarding this ??
many thanks in advance
Bill
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list