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(_dot_)RACHER(_at_)geos(_dot_)biz
Date: Fri, 14 Apr 2006 13:05:52 +0200
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--