[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: copyright symbol was Re: XSLT hosting

Subject: RE: copyright symbol was Re: XSLT hosting
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Wed, 4 Apr 2001 13:28:40 +0100
html copyright symbol
Wow. Seems replacing my existing XML declaration with <?xml version='1.0'
encoding="UTF-8"?> fixed the little problem!

Nice one cutlass.

Thanks to everyone else as well.

Daniel.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of cutlass
Sent: 04 April 2001 11:52
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: copyright symbol was Re:  XSLT hosting




Daniel Newman wrote:

> Hi guys,
>
> hope you can help with this easy question, because it's confusing the hell
> out of me.
>
> I was getting a (The style sheet does not contain a document element. The
> style sheet may be empty, or it may not be a well-formed XML document.)
> error. I know this is due to an &copy; tag I've got in there, that I just
> want to pass to the HTML page. Now, I can get around the processing
problem
> by using the &#169; tag. This does in fact produce a copyright character
in
> the source of my HTML, but, the character is NOT being displayed by the
> html. I think the only way around this is to push &copy; direct to the
html
> source, without it being converted into the C character by the XML parser.

no no;  &copy means nothing to the browser natively. if u are using
entities; your &copy; entity should be properly defined in a dtd or
doctype tag.

using &#169 should give u the correct copyright symbol

first off does the following listing work in your browser

<html>
<body>
&#169;
</body>
</html>

it should, if it doesn't something wrong with your browser ( maybe char
encoding ).

some steps to do
a) to make sure your output is html use the <xsl:output method="html"/>
b) make sure your encoding attribute of xml and xsl is correct, set to
utf-8 or iso-8859-1
c) your can define doctype-public and doctype-system in xsl:output tag
d) goto faq http://www.dpawson.co.uk/xsl/N3353.html

cheers, jim fuller




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.