This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Parsing Problem with Default XML Namespace - xmlns
- From: Daley Thomas Contr AFRL/IFGB <Thomas dot Daley at rl dot af dot mil>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Thu, 30 May 2002 14:46:08 -0000
- Subject: [xsl] Parsing Problem with Default XML Namespace - xmlns
- Reply-to: xsl-list at lists dot mulberrytech dot com
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