You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/04/18 00:14:11 UTC
DO NOT REPLY [Bug 8228] New: -
DOM006 for processing instruction
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=8228>.
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=8228
DOM006 for processing instruction
Summary: DOM006 for processing instruction
Product: Xerces2-J
Version: 2.0.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: DOM
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: scott@vachalek.org
I am attempting to construct a DOM with an stylesheet and receiving a DOM006
error:
Document doc = db.newDocument();
doc.appendChild( doc.createProcessingInstruction(
"xml-stylesheet", "href=\"" + stylesheet + "\" type=\"text/xsl\"" ) );
doc.appendChild( doc.createElement( ReportTags.ROOT ) );
The second statement causes the DOM006 and I don't see why. If the second and
third statements are reversed, there is no error but the instruction generally
has no effect when it comes after the document...
This could be user error but this doesn't seem consistent to me, nor in line
with what I understand as valid XML. Please help!
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org