This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT hosting
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] XSLT hosting
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 4 Apr 2001 11:54:06 +0100
- References: <NEBBJGCDKMLHOAAONGKDGECLCBAA.daniel.newman@bis-web.net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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 © tag I've got in there, t
Firstly © is not a tag it's an entity reference. You can use an
entity reference in an XML file only if the entity is defined in the DTD
specified at the top of the file (except for amp lt gt quot and apos
which are predefined) so you could add an <!ENTITY declaration to define
copy, but as you observe it is easier just to use © directly
(although that isn't a tag either).
However if use of an undefined entity is causing an error
" does not contain a document element." then your parser is not being
particularly helpful with it's error messages. Are you sure that this is
the only error, and that there is not another error in your stylesheet
(such as a missing top level element)
> but, the character is NOT being displayed by the html.
If   or © is in the generated HTMl file and your browser is
not displaying it then that's a bug in your browser 9which are you
using)
> I think the only way around this is to push © direct to the html
> source
whether you use © (after having defined it) or © in the
stylesheet the XSL system sees the same input and will produce the same
output, which might be © or any of several other alternatives.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list