[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: xsl:choose and multiple (sibling) elements
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/ .
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|