xsl-list
[Top] [All Lists]

Re: cdata, grouping and upconversion

2004-12-11 09:12:39
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


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