[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Re: xsl:choose and multiple (sibling) elements
Subject: RE: [xsl] Re: xsl:choose and multiple (sibling) elements From: "mike@xxxxxxxxxxxx" <mike@xxxxxxxxxxxx> Date: Fri, 14 Apr 2006 16:39:02 -0400 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] creating tags around a st, TGolshan | Thread | [xsl] How to remove the automatical, Ramakant Akhairamka |
RE: [xsl] How to remove the automat, mike@xxxxxxxxxxxx | Date | [xsl] Can we have a <xsl:attribute>, bharathi kongara |
Month |