[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: regarding variables and axis

Subject: AW: regarding variables and axis
From: "Fries, Markus, fiscus GmbH, Bonn" <M.Fries@xxxxxxxxxxx>
Date: Fri, 22 Mar 2002 16:40:53 +0100
axis dear
Hi!

no idea about overhead by variables...

I can help you with a simpler XPATH for the other one:

../../childelement1/text()

Markus

-----Ursprüngliche Nachricht-----
Von: william locksman [mailto:vsd18@xxxxxxxxxxxxxx]
Gesendet: Freitag, 22. März 2002 16:24
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff:  regarding variables and axis



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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.