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
****************************************************************
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--