Subject: Re: [xsl] Template matching preceding-sibling. From: "Ilya Konanykhin" <ilya.konanykhin.ml@xxxxxxxxx> Date: Wed, 14 Nov 2007 10:00:53 +0600 |
I'm missing something fundamental, what is it?
<xsl:template match="Rec[activity != preceding-sibling::Rec/activity or not(preceding-sibling::Rec)]"> Ello xslers. </xsl:template>
<xml> <Rec> <activity>hi</activity> </Rec> <Rec> <activity>hi</activity> </Rec> </xml>
----
Above should only print anything once, but I'm getting it each time. What am I not getting?
----------- input.xml: <?xml version="1.0"?>
<xml> <Rec> <activity>hi</activity> </Rec> <Rec> <activity>hi</activity> </Rec> </xml>
----------- input.xsl: <?xml version="1.0"?>
<xsl:template match="Rec[activity != preceding-sibling::Rec/activity or not(preceding-sibling::Rec)]"> Ello xslers. </xsl:template>
----------- output.xml: <?xml version="1.0" encoding="UTF-8"?>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Re: [xsl] Template matching pre, Steve | Thread | RE: [xsl] Template matching precedi, Michael Kay |
Re: [xsl] fo:inline within fo:basic, Khaled Aly | Date | [xsl] get value from link from last, Vaduvoiu Tiberiu |
Month |