Subject: Re: [xsl] Well formness error when XSL template Match From: Florent Georges <lists@xxxxxxxxxxxx> Date: Fri, 31 Oct 2008 15:27:49 +0100 (CET) |
"V.Ramkumar" wrote: > I am getting trouble to get below expected output. What trouble? > <xsl:template match="KEYWORDS"> > <abbrev><xsl:apply-templates/></abbrev> > </xsl:template> Ok. > <xsl:template match="KEYWORDS/TITLE"> > <title><xsl:apply-templates/></title><xsl:text> </xsl:text> > </xsl:template> Why the xsl:text? Maybe you want <xsl:output indent="yes"/>? > <xsl:template match="KEYWORD"> > <xsl:for-each-group select="." group-by="."> > <randlist bulltype="un"> > <xsl:if test="current-group()"> > <randitem><xsl:apply-templates/></randitem> > </xsl:if> > </randlist> > </xsl:for-each-group> > </xsl:template> I can't see what you want. From your input and output sample, I'd say simply: <xsl:template match="KEYWORD"> <randlist> <xsl:apply-templates/> </randlist> </xsl:template> Regards, -- Florent Georges http://www.fgeorges.org/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Well formness error when XSL , V.Ramkumar | Thread | Re: [xsl] Well formness error when , Wendell Piez |
Re: [xsl] XSLT 2.1, Florent Georges | Date | [xsl] XPath "//", speed, and Saxon, Lars Huttar |
Month |