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=4575>.
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=4575

Improper parsing of ?xml-stylesheet? processing instruction

           Summary: Improper parsing of ?xml-stylesheet? processing
                    instruction
           Product: XalanJ2
           Version: 2.2.x
          Platform: Other
               URL: http://nersp.nerdc.ufl.edu/~wamac/xalan/
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There seems to be a problem parsing the href="..." attribute of
<?xml-stylesheet?> processing instruction when the character immeaditly after
the last quote in the href attribute is the EOL.

I wrote a simple URIResolver to show what was being passed into it. Here is
the output.

$ java org.apache.xalan.xslt.Process -IN a.xml -URIRESOLVER a
href: a.xsl"
base: a.xml

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException): No xml-stylesheet PI found in: a.xml

Note the extra quote in the href value. The XSLT Error is because my URIResolver
returns null.

The examle xml, xsl, and java can be downloaded at:
http://nersp.nerdc.ufl.edu/~wamac/xalan/

Reply via email to