|
Subject: Re: [xsl] regexs, grouping (?) and XSLT2? From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Sat, 7 Aug 2004 21:37:31 -0400 |
I have paragraphs like:
<p>A "quote."</p>
I want the quotes converted to XHTML tags. The following code doesn't work, or did any other variation I tried:
<xsl:template match="xhtml:p">
<p>
<xsl:analyze-string select="." regex='"(.*?|.*?\n.*?)"'>
<xsl:matching-substring>
<q><xsl:value-of select="regex-group(1)"/></q>
</xsl:matching-substring>
<xsl:non-matching-substring>
<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
</p>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] regexs, grouping (?) and XSLT, Bruce D'Arcus | Thread | RE: [xsl] regexs, grouping (?) and , Michael Kay |
| Re: [xsl] Linenumbering & word inde, David Carlisle | Date | RE: [xsl] Merging Data, Kevin Bird |
| Month |