Re: AW: [xsl] Instant Saxon

Subject: Re: AW: [xsl] Instant Saxon
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 1 Sep 2003 15:03:28 +0100
> This will omit the whole xml tag

Yes.

> i only want to omit the encoding="utf-8"  from the beginning tag...

XSL gives no way of doing that. Any software that requires that is
definitely broken and you should report a bug to them. The XML spec is
quite clear that utf8 is default in this case so there is no need for an
XML declaration.


You can always run your file through

sed -e "s/encoding=\"utf8\"//" file.xml 

to remove the string after you've done the transform.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

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


Current Thread