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 2003/06/09 21:57:01 UTC
DO NOT REPLY [Bug 20624] New: -
How to make Xalan Schema-aware?
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=20624>.
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=20624
How to make Xalan Schema-aware?
Summary: How to make Xalan Schema-aware?
Product: XalanJ2
Version: 2.4
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: jrostosk@learningpatterns.com
Xalan will read a document's DTD (via its DOCTYPE statement) and use it to
provide attribute defaults and replacement text for general entity references.
In fact, if the DTD cannot be located, it throws a
java.io.FileNotFoundException. Of course, it performs no *validation* against
a DTD.
How can one get this same behavior in an XML Schema environment?
We wish to get attribute defaults from a W3C XML Schema in our
transformations. I have looked extensively for a mechanism to do this, but
have been unable to find one. The JAXP
javax.xml.transform.TransformerFactory's setAttribute() method could be a good
way to turn on such "Schema-awareness." This technique is used in Xerces in
both SAX and DOM.