This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to escape invalid characters in XML to XML process
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 25 Apr 2002 17:21:44 +0100
- Subject: Re: [xsl] How to escape invalid characters in XML to XML process
- References: <2DE78F33FFE0D3118C0200508B94F9CA115904A2@uswaumsx08medge.med.ge.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Can I do that in XSLT when I receive my input XML
No, because if the file contains invalid characters it is not XML and
so will be rejected by any XML parser and so never passed to XSLT (which
always uses an XML parser on its input).
You must arrange that the input to XSLT is well formed XML. How you
create the inout for XSLT is of course not really an issue with XSLT.
You could use a text stream editor such as perl, but I thought oracle
had an option to output as XML. In which case, by definition, there can
be no invalid characters.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list