[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: occurrences and axis

Subject: RE: occurrences and axis
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 18 Nov 2003 14:01:48 +0200
switch vol 1

> >  <xsl:if test="child::ptr[attribute::gradRef='gerg_inn']">
> >
> >or e.g.
> >
> >  <xsl:if test="ptr/@gradRef = 'gerg_inn'">
> >
> >  
> >
> but it did not work :-(

In your previous email you wrote:

> <xsl:template match="/">
> </xsl:template>
>  <xsl:key name="term" match="term[@type='forma']" use="."/>
>   <xsl:template match="//tig" name="pippo">
> <html>
> <body>
> <xsl:if test="child::ptr[gradRef='gerg_inn']">
>     <xsl:for-each 
> select="child::term[@type='forma'][not(.=preceding::term)]">
>       <xsl:sort select="."/><br />
>       <xsl:value-of select="concat(.,' ',count(key('term',.)))"/>
>       <xsl:text>
> </xsl:text>
>     </xsl:for-each>
>   </xsl:if>
> </body>
> </html>
>   </xsl:template>
> </xsl:stylesheet>

Does your stylesheet contain the topmost template, i.e. the template for root node that doesn't do anything? Anyhow, the test works for me with the source you showed—could you show a complete (i.e. self-contained) example and stylesheet that doesn't work, and what is the desired output?


Jarno - DJ Xii vs DJ Todd: Bait & Switch Vol. 1

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.