Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Well formness error when XSL template Match

From: "V.Ramkumar" <v.ramkumar@---------------------->
To:
Date: 11/1/2008 5:12:00 AM
Dear Wendell

Thanks a lot. I got the expected output.

Regards,
Ramkumar

-----Original Message-----
From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx] 
Sent: Friday, October 31, 2008 11:00 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Well formness error when XSL template Match

Hi,

I think what's wanted is probably something like:

<xsl:template match="KEYWORDS">
   <abbrev>
     <xsl:apply-templates select="TITLE"/>
     <xsl:if select="KEYWORD">
       <randlist bulltype="un">
         <xsl:apply-templates select="KEYWORD"/>
       </randlist>
     </xsl:for-each-group>
   </abbrev>
</xsl:template>

<xsl:template match="KEYWORDS/TITLE">
   <title><xsl:apply-templates/></title>
</xsl:template>

<xsl:template match="KEYWORD">
   <randitem><xsl:apply-templates/></randitem>
</xsl:template>

One could use xsl:for-each-group instead of xsl:if, but there doesn't 
seem much reason to.

Cheers,
Wendell


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent