Re: [xsl] Problems with &/& in style sheet

Subject: Re: [xsl] Problems with &/& in style sheet
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 15 Jun 2005 10:14:22 +0100
I said

  Which is good, because an unquoted & in an html file would be a syntax
  error 

But I hadn't noticed that you were inside a script element.

So my answer is wrong (as is Michael's) George Bina pointed you in the
right direction.

If you are using the html output method (which should be the default
if your top level element is html in no-namespace) then the & will be
output as &.

If you are using the xhtml output method (eg your are writing xhtml)
then you will get &amp; which is the correct syntax for xhtml.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread