Subject: Re: [xsl] xslt replace special characters From: "Alice Fan" <arisuu@xxxxxxxxxxx> Date: Sun, 10 Nov 2002 19:20:11 -0800 |
From: Mike Brown <mike@xxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] xslt replace special characters Date: Fri, 8 Nov 2002 17:31:23 -0700 (MST)
Alice Fan wrote:
> ok. one last question... the search and replace works now. but when i pass
> in a '&' character to the xsl it totally dies. i'm using xalan as my
> processor. is there a wy in xslt to catch this and convert it to &
> before it tries to parse it?
No. The XSLT processor relies on an XML parser for its input, and the parser
will reject a malformed document because those are the rules of XML
processing. You must provide well-formed input to the parser if you want it to
pass the important parts of the document to the next application in the chain.
- Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
.......................................................... Email: arisuu@xxxxxxxxxxx Cell: (650) 483-8164 Work: (212) 201-0881 ..........................................................
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xslt replace special char, Mike Brown | Thread | Re: [xsl] xslt replace special char, Greg Faron |
[xsl] Oracle XSQL and msxsl namespa, Adrian | Date | [xsl] Regarding xlink:type=extended, swapna vujjini |
Month |