Subject: Re: [xsl] IE does not comprehend default namespace in XML From: Michael Ludwig <mlu@xxxxxxxxxxxxx> Date: Thu, 27 Aug 2009 09:26:01 +0200 |
it does not render anyth= ing except the hardcoded text that I have in the XSLT, when I have the xmln= s=3D"www.ncr.com/ocz" attribute in the root node of the xml. As soon as I r= emove this attibute, it works fine and the xslt gets applied.
It is a namespace issue. The xmlns looks like an attribute (and it is), but namespace-aware XML parsers may not treat it like an attribute and will treat it as a namespace declaration.
Any XML namespace tutorial will teach you the basics. It's not too complicated.
So for developing/writing the xml, I need to keep the xmlns attribute in the xml, while trying to render it using an xslt (defined in xml as <?xml-stylesheet type="text/xsl" href="PIDRepresentation.xslt"?>), I have to remove it from the xml.
-- Michael Ludwig
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] IE does not comprehend defaul, denit thomas | Thread | Re: [xsl] IE does not comprehend de, C. M. Sperberg-McQue |
Re: [xsl] hyphenator in xsl impleme, Bruno Mascret | Date | Re: [xsl] hyphenator in xsl impleme, Bruno Mascret |
Month |