http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2257 *** shadow/2257 Wed Jun 20 23:43:03 2001 --- shadow/2257.tmp.8583 Wed Jun 20 23:43:03 2001 *************** *** 0 **** --- 1,41 ---- + +============================================================================+ + | 1.5 thinks a <?xml-stylesheet ...> tag is a <?xml ...> tag | + +----------------------------------------------------------------------------+ + | Bug #: 2257 Product: Xerces-C | + | Status: NEW Version: 1.5 | + | Resolution: Platform: All | + | Severity: Blocker OS/Version: All | + | Priority: Other Component: Non-Validating Parser | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The new Xerces 1.5 seems to think that an <?xml-stylesheet ...> tag is actually + an <?xml ...> tag. For example, when parsing a file named component1.xml: + + <?xml version="1.0" encoding="UTF-8" ?> + <!DOCTYPE component SYSTEM "../../../doc/component.dtd"> + <?xml-stylesheet href="../../../doc/component.xsl" type="text/xsl"?> + <?cocoon-process type="xslt"?> + ... + + We get the following error: + + Fatal Error at (file component1.xml, line 3, char 6): The XML or Text + declaration must start at line/column 1/1 + + The parser stops on line 3 after having only read in "<?xml" and then + immediately assumes it has stumbled accross a doc type declaration tag. + + The parsing then immediately halts, and the rest of the document is discarded. + + Chris Moulding + Research Associate + Scientific Computing and Imaging Institute + University of Utah + [EMAIL PROTECTED] + www.sci.utah.edu \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
