[xsl] Parsing Problem with Default XML Namespace - xmlns

Subject: [xsl] Parsing Problem with Default XML Namespace - xmlns
From: Daley Thomas Contr AFRL/IFGB <Thomas.Daley@xxxxxxxxx>
Date: Thu, 30 May 2002 14:46:08 -0000
I am having a problem parsing an XML document, which was generated according
to the 
Intrusion Detection Message Exchange Format (IDMEF) Data Model and XML DTD,
in 
http://www.silicondefense.com/idwg/draft-ietf-idwg-idmef-xml-07.txt ,
starting on page 91. 
Specifically, the problem lies with the default namespace declaration, " 
xmlns="urn:iana:xml:ns:idmef" ", which appears in the following top level
node line: 

I am using the Oracle XML Parser for Java, XSLT Engine, xmlparserv2.jar, in
XML Cooktop v2.2 - 
April 2001.  If I change " xmlns="urn:iana:xml:ns:idmef" " to " xmlns='"" "
or completely 
remove the declaration in the line above, the document parses fine. However,
changing this 
declaration prevents the XML document from being validated against the dtd.
Any assignment 
other than " xmlns="" " will cause a parsing problem. 

NOTE: the jd.xslt XSLT Engine has no problems parsing or validating the 
"xmlns="urn:iana:xml:ns:idmef" "declaration.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread