xsl-list
[Top] [All Lists]

[xsl] Replace(//text()) in XSLT 1

2012-11-16 11:02:20
I'd like to replace hyphens with en dashes. In XSLT 2.0, I can do this
with replace(text()), but I'm limited to XSLT 1.0.

How could I achieve the same thing in XSLT 1.0?

<xsl:value-of select="replace(//text(), '-', '&#8211;')"/>

Many thanks,
Nathan

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