[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] cdata, grouping and upconversion
Subject: RE: [xsl] cdata, grouping and upconversion From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Sat, 11 Dec 2004 18:45:59 -0000 |
Or more simply > <xsl:template match="key:div"> > <xsl:for-each select="tokenize(., '\n')[matches(., '\w')]"> > <para> > <xsl:value-of select="."/> > </para> > </xsl:for-each> > </xsl:template> Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Bruce D'Arcus [mailto:bdarcus@xxxxxxxxxxxxx] > Sent: 11 December 2004 16:13 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] cdata, grouping and upconversion > > The below works. > > <xsl:template match="key:div"> > <xsl:for-each select="tokenize(., '\n')"> > <xsl:choose> > <xsl:when test="matches(., '\w')"> > <para> > <xsl:value-of select="."/> > </para> > </xsl:when> > <xsl:otherwise/> > </xsl:choose> > </xsl:for-each> > </xsl:template> > > Bruce
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] cdata, grouping and upcon, Bruce D'Arcus | Thread | [xsl] xsl:output method, Gabriel K. |
Re: [xsl] xsl:output method, Gabriel K. | Date | RE: [xsl] xsl:output method, Michael Kay |
Month |