Subject: RE: [xsl] How to find out the context of the current node? From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 29 Nov 2001 12:31:50 +0200 |
> See XML example. When I match an actual medication in my XSLT > script I want to perform a different action than when I find > a history > medication. So somehow I need to be able to know what the context > of the medication node is. In other words, when I've matched > a medication > node I want to say something like: > if actual medication > do something > else > do something else > I know that I can use the xsl:if or xml:choose statement for > this. What I > don't know is how to find out in what context I am. <xsl:choose> <xsl:when test="parent::Actual"> do something </xsl:when> <xsl:otherwise> do something else <xsl:otherwise> </xsl:choose> J XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to find out the conte, Jörg Heinicke | Thread | [xsl] Reformatting tables, Neil Abraham |
[xsl] How to find out the context o, Marco Hoendervangers | Date | Re: [xsl] XSLT works in IE6 and som, Jeni Tennison |
Month |