Subject: Re: [xsl] using xsl:output-character to render characters in 2 ways From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 13 Nov 2009 17:39:23 +0100 |
I'll change my example.
Financial Times, "ErdoDan Grubu'na"
creates
<meta name="description" content='Financial Times, "ErdoDan Grubu'na"' />
I now have an attribute that is marked up by single quotes containing a single quote. IE6 for one cannot deal with this.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xs" version="2.0">
<xsl:template match="/"> <html> <head> <title>Example</title> <xsl:apply-templates select="desc"/> </head> <body> </body> </html> </xsl:template>
<xsl:template match="desc"> <meta name="description" content="{.}"/> </xsl:template>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using xsl:output-characte, Christopher R. Maden | Thread | Re: [xsl] using xsl:output-characte, David Carlisle |
Re: [xsl] using xsl:output-characte, Christopher R. Maden | Date | Re: [xsl] fo:basic-link, G. Ken Holman |
Month |