cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pope <benpop...@gmail.com>
Subject Re: How to stop using numeric entities?
Date Mon, 25 Apr 2005 16:36:49 GMT
makoto hirayama wrote:
> Thanks, Ben.
> 
> 
>>hello.xml:
>><?xml version="1.0" encoding="Windows-31J"?>
>><page xml:lang="ja">...
>>
>>hello.xsl:
>><?xml version="1.0" encoding="Windows-31J"?>
>><xsl:stylesheet version="1.0"
>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>><xsl:output encoding="Windows-31J"?>
>><xsl:template xml:lang="ja">...
> 
> 
> This solution did not effect, but
> 
> 
>>      <xsl:attribute name="disable-output-escaping">true</xsl:attribute>
> 
> 
> I solved my problem by the grace of your idea.
> 
> like this, 
> 
> <xsl:template match="page">
> 	<html><head><title>
> 	<xsl:value-of select="title" disable-output-escaping="yes"/>
> 	</title></head><body>
> 		<xsl:apply-templates/>
> 	</body></html>
> </xsl:template>
> 
> <xsl:template match="para">
> 	<p><xsl:apply-templates /></p>
> </xsl:template>
> 
> <xsl:template match="text()">
> 	<xsl:value-of select="." disable-output-escaping="yes"/>
> </xsl:template>

Glad we got there in the end!

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message