xsl-list
[Top] [All Lists]

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

2008-11-01 01:11:35
Dear Wendell

Thanks a lot. I got the expected output.

Regards,
Ramkumar

-----Original Message-----
From: Wendell Piez [mailto:wapiez(_at_)mulberrytech(_dot_)com] 
Sent: Friday, October 31, 2008 11:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [xsl] Well formness error when XSL template Match, V.Ramkumar <=