You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/07/30 16:41:08 UTC
DO NOT REPLY [Bug 11292] New: -
Possible improper namespace handling in the schema?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11292
Possible improper namespace handling in the schema?
Summary: Possible improper namespace handling in the schema?
Product: XalanC
Version: 1.3.x
Platform: All
URL: see below.
OS/Version: Other
Status: UNCONFIRMED
Severity: Minor
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: merlin@radiosoft.com
I'm not sure if this is a bug, or just my misunderstanding of how xsl and the
schema work together. Its worth noting that the microsoft .xsl transformer
excecutes the transformation without complaint. Also, xerces C++ 1.7 parses
the file with namespace/schema checking on with no problems.
I missed this problem for a long time because I had (improperly) not qualified
the schema location so the .xsl transformer was ignoring it.
We have built some .xml files with associated schema. Following Microsoft's
example, we have extended the schema with our own namespace for internal
reasons. According to my understanding, you can embed your own namespaces
in .xsd documents and the schema processor should ignore them. Microsoft does
this in its schema documents, for example.
You can see an example of the xml file here:
http://www.radiosoft.com/XMLSchema/directional_pattern.xml
The schema here: (already referenced in the xml file)
http://www.radiosoft.com/XMLSchema/directional_pattern.xsd
and an example transform here
http://www.radiosoft.com/XMLSchema/dirpat_to_pt2.xsl
The file properly transforms, but xalan reports errors whenever it encounters a
namespace it does not understand, in this case rs:.
I can work around the problem by disabling the error output in xalan.exe. (I'm
running it for an internal process on apache web server).
I am running Xalan linked with ms visual C 6.0. Since I don't have the
dinkumware C++ library fixes, I used the provided binary dlls.
Hope this helps! If I'm doing something wrong, or you need help or more
information, email me. I'd be happy to help, as I have great admiration for
your project.
Merlin