Glen Mazza created CXF-4546:
-------------------------------

             Summary: @XMLInstruction
                 Key: CXF-4546
                 URL: https://issues.apache.org/jira/browse/CXF-4546
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.6.2
            Reporter: Glen Mazza
            Priority: Minor


org.apache.cxf.jaxrs.ext.xml.XMLInstruction doesn't seem to handle stray white 
space particularly well:

@XMLInstruction("<?xml-stylesheet type='text/xsl' href='foobar.xsl'?>")
works fine (outputs as <?xml-stylesheet type='text/xsl' 
href='http://localhost:9998/foobar.xsl'?>), but:

@XMLInstruction("<?xml-stylesheet type='text/xsl' href='foobar.xsl' ?>")
(w/stray space between ending apostrophe and ending ?)
outputs as:
<?xml-stylesheet type='text/xsl' href='http://localhost:9998/foobar.xsl''?>
(erroneous double apostrophe at the very end).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to