[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Philippe Drix wrote:
Don't understand why you need it, but
<xsl:attribute name="bar">&apos;bar&apos;</xsl:attribute>
why not just
<foo bar="'bar'"/>
or
<foo bar="'{$bar}'"/>
Re: [xsl] problem with d-o-e in attribute
Subject: Re: [xsl] problem with d-o-e in attribute From: Robert Koberg <rob@xxxxxxxxxx> Date: Sat, 24 Apr 2004 06:47:17 -0700 |
Philippe Drix wrote:
Hi!
I am working on XSL Transformations to generate XML OpenOffice.org files, namely content.xml and styles.xml.
I am puzzled by a bug I cant work around by pure XSLT code.
Here the problem :
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> <foo>
Don't understand why you need it, but
<xsl:attribute name="bar">&apos;bar&apos;</xsl:attribute>
why not just
<foo bar="'bar'"/>
or
<foo bar="'{$bar}'"/>
best, -Rob
</foo> </xsl:template>
</xsl:stylesheet>
What I gain : <?xml version="1.0" encoding="utf-8"?> <foo bar="&apos;bar&apos;"/>
What I want : <?xml version="1.0" encoding="utf-8"?> <foo bar="'bar'"/>
I use Saxon 6.5.3
Any idea ? Regards -- PhD
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem with d-o-e in attribu, Philippe Drix | Thread | Re: [xsl] problem with d-o-e in att, phdrix |
[xsl] dynamic variable names, Sam Saha | Date | Re: [xsl] dynamic variable names, Robert Koberg |
Month |