[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: IE does not comprehend default namespace in XML

Subject: Re: IE does not comprehend default namespace in XML
From: "C. M. Sperberg-McQueen" <cmsmcq@xxxxxxxxxxxxxxxxx>
Date: Thu, 27 Aug 2009 09:16:48 -0600
Re:  IE does not comprehend default namespace in XML
On 26 Aug 2009, at 22:32 , denit thomas wrote:

Hi All,
I am using an XSLT to parse an XML to produce a text file. The issue is tha=
t if I use the Internet Explorer to open this xml, 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. I need to kee=
p this attribute in the xml as I have an XSD for this xml and thus need thi=
s default namespace in xml.

If I have read your example correctly (some email encoding issues made that harder than usual), you have an XML element whose namespace is "www.ncr.com/ocz" and whose local name is "model".

First, note that the namespace name you give is a relative
URI.  Strictly speaking the various XML-related specifications
do not define what happens when relative URIs are used as
namespace names; in particular, they do not have a defined
XML infoset.

So the first thing I'd try is using "http://www.ncr.com/ocz"
or some other absolute URI as the namespace name.

Second, are you confident that your XSLT stylesheet has
a match for an element named "model" in the namespace
"www.ncr.com/ocz"?  If the template match attributes match
"model" and so on, they won't fire for {www.ncr.com/ocz}model
and the other elements in your document.

In case of doubt, show us a little of your stylesheet.

I hope this helps.


-- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net ****************************************************************

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.