Subject: [xsl] Differing behavior of Xalan and Saxon with namespaces. Who's right? From: "Roger L. Costello" <costello@xxxxxxxxx> Date: Thu, 13 Mar 2003 14:40:00 -0500 |
Hi Folks, I have observed a difference in behavior of Xalan and Saxon with namespaces. Consider this stylesheet: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fit="http://www.keeping-fit.org" version="1.0"> <xsl:output method="xml"/> ... </xsl:stylesheet> Note the namespace declaration in the stylesheet: xmlns:fit="http://www.keeping-fit.org" When I run Xalan I get this output: <?xml version="1.0" encoding="UTF-8"?> <FitnessCenter xmlns:fit="http://www.keeping-fit.org"> ... </FitnessCenter> Observe that the namespace declaration from the stylesheet has been carried over to the result document. Now, here is the output from running Saxon: <?xml version="1.0" encoding="utf-8"?> <FitnessCenter> ... </FitnessCenter> Notice that the namespace declaration from the stylesheet was NOT carried over to the result document. Which is correct - Xalan or Saxon? /Roger XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] marked characters in html, mark_fletcher | Thread | Re: [xsl] Differing behavior of Xal, David Carlisle |
RE: [xsl] marked characters in html, Michael Kay | Date | Re: [xsl] marked characters in html, Rick Taylor |
Month |