You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "michael.veeck" <Mi...@virtual-identity.com> on 2000/10/09 13:42:12 UTC
Sorry : Last header should be " newbie question : xslprocessor re
placing " "
Maybe the question is too easy, but what i dont understand is :
I have an XML-Document which contains Elements with Quotes like :
<resource language="de">"Hello World", says
Kenny</resource>
When I transform this Document using a stylesheet (xalanj) with the header
<xsl:output method="xml" encoding="windows-1250">
....
<DESCRIPTION><xsl:value-of
select="/resource[@language='de']"></DESCRIPTION>
the stylesheet replaces all Quotes leaving me with
<DESCRIPTION>"Hello World", says Kenny</DESCRIPTION>
when there should be
<DESCRIPTION>"Hello World", says Kenny</DESCRIPTION>
What am I doing wrong ? Why does the processor replaces those quotes ? Or
are the " allowed in an XML-Document ?
Thanks in advance
Michael veeck
Re: Sorry : Last header should be " newbie question :
xslprocessor re placing " "
Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
You only need to use " inside attributes...
The others (& < >) need to be specified everywhere
At 13:42 09/10/00 +0200, michael.veeck wrote:
>Maybe the question is too easy, but what i dont understand is :
>I have an XML-Document which contains Elements with Quotes like :
>
> <resource language="de">"Hello World", says
>Kenny</resource>
>
>When I transform this Document using a stylesheet (xalanj) with the header
>
> <xsl:output method="xml" encoding="windows-1250">
>....
> <DESCRIPTION><xsl:value-of
>select="/resource[@language='de']"></DESCRIPTION>
>
>the stylesheet replaces all Quotes leaving me with
>
> <DESCRIPTION>"Hello World", says Kenny</DESCRIPTION>
>
>when there should be
>
> <DESCRIPTION>"Hello World", says Kenny</DESCRIPTION>
>
>What am I doing wrong ? Why does the processor replaces those quotes ? Or
>are the " allowed in an XML-Document ?
>
>Thanks in advance
>Michael veeck
--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717