More bugs and fixes
Nikhil Dinesh <[email protected]> Fri, 30 Jul 2004 13:39:18 -0400 (EDT)
| Newsgroups | gmane.text.xml.xframe.xsddoc |
|---|---|
| Message-ID | <[email protected]> |
Hi, The stylesheets use the name() predicate test incorrectly in some places. The uses were too widespread for me to correct. Ive corrected one case described below. The issue is that the name() will return the QName of the Node but the stylesheet assumes that the prefix is always "xs". This works for the template match because the xs prefix is defined in the stylesheet but will not work for the name() for schemas with the XML_SCHEMA_NS qualified differently. There are two solutions to this: a. Correct the stylesheet to use local-name() and namespace-uri(). b. Load the schema using a SAX2DOM identity transform and substitute the namespace prefixes. There was another bug ie an inconsistency between model.xsl and xml2html.xsl in the treatment of the "any" element. Ive fixed this specific case (line 135 of model.xsl and line 1100 of xml2html.xsl). Similar errors might occur for "anyAttribute" but Ive not checked that. Ive added more debugging info to Processor.java ie the source and result of intermediate transforms are serialized to STDERR when debug is on. -Nikhil
xsddoc.tgz
(application/x-gzip, 24.3 KB) - not displayed