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

RE: Re: xsl:choose and multiple (sibling) elements

Subject: RE: Re: xsl:choose and multiple (sibling) elements
From: "mike@xxxxxxxxxxxx" <mike@xxxxxxxxxxxx>
Date: Fri, 14 Apr 2006 16:39:02 -0400
xpath up one level
You can read this:

<xsl:value-of select="$belegBereich/../textListe/element/inhalt"/>

as

<xsl:value-of
select="$belegBereich/parent::node()/child::textListe/child::element/child::
inhalt"/>

Each step in the path expression selects nodes by navigating from the nodes
selected by the previous step. The expression on the right of "/" is
evaluated once for each node selected by the previous step, with that node
as the context node.

Michael Kay
http://www.saxonica.com/



Original Message:
-----------------
From:  Alexander.RACHER@xxxxxxxx
Date: Fri, 14 Apr 2006 13:05:52 +0200
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re: xsl:choose and multiple (sibling) elements


hi,
thx for the quick answers.

mike: your suggestion works perfect! thx a lot. just one last request:
could you please tell me what exactly the xpath-expression after select="
means?

        <xsl:value-of select="$belegBereich/../textListe/element/inhalt"/>

 i understand that $belegBereich gets the previously defined variable. is
it correct, that the variable sets the current node, so that ../ will
bring me up one level to the parent and subsequently over the (sibling)
path /textListe/element/inhalt to the desired value?

cheers
alex


______________________________________________________________________
Der Austausch von Nachrichten mit Software Daten Service via E-Mail dient
ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen
duerfen ueber dieses Medium nicht ausgetauscht werden.

Correspondence with Software Daten Service via e-mail is only for
information purposes. This medium is not to be used for the exchange of
legally-binding communications.


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

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.