This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: copyright symbol in XSLT
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 7 Feb 2002 09:28:14 +0100
- Subject: RE: [xsl] copyright symbol in XSLT
- Reply-to: xsl-list at lists dot mulberrytech dot com
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Stuart Zakon
> Sent: Thursday, February 07, 2002 4:41 AM
> To: XSL-List@lists.mulberrytech.com
> Subject: RE: [xsl] copyright symbol in XSLT
>
>
> I have resolved this by using <xsl:text>, which allows the
> XSLT processor to just move the copyright symbol into the
> output HTML with the ampersand:
>
> <p>Copyright <sup>
> <xsl:text disable-output-escaping="yes">&#169;</xsl:text>
> </sup> 2002 Company, Inc.</p>
>
> Is this the best approach?
No, it's the wrong approach.
> This type of maneuver is so complicated, how do junior people
> master these quirks??
By just typing
"©"
and making sure that the XSLT transformation is generating a properly
encoded document.
Your problem doesn't sit in the XSLT code -- it's in the code that invokes
it. With your "solution", you are just hiding a bug through a non-portable
workaround.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list