[jdom-interest] Help with xsl:text disable-output-escaping="yes"

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Sep 12 07:52:12 PDT 2002


Actually I was requesting opinions about modifying XMLOutputter to recognize 
some PIs to drive output generation.

Laurent


Bradley S. Huffman wrote:
> Would using javax.xml.transform.stream.StreamSource (included in JDK1.4)
> instead of JDOMResult me your needs.
> 
> "Emmett McLean" writes:
> 
>>As Laurent asked ...
>>
>>Any opinions or suggestions?
>>
>>Thanks,
>>
>>em
>>
>>---- Laurent Bihanic <laurent.bihanic at atosorigin.com> wrote:
>>
>>>Hi,
>>>
>>>disable-output-escaping only applies when the XSLT processor outputs
>>>the 
>>>result as XML ou HTML. It does not apply when the output is a SAX event
>>>flow 
>>>as it is the case when you use JDOMResult.
>>>JDOM receives a sequence of characters and, when requested to ouput
>>>the 
>>>document as XML, performs the escaping so that the output XML represents
>>>the 
>>>actual JDOM document content. In your case, this content is text.
>>>
>>>The only way JDOM could reproduce Xalan behaviour would be for XMLOutputter
>>>to 
>>>interpret the <?javax.xml.transform.disable-output-escaping?> PI.
>>>Opinions?
>>>
>>>Laurent




More information about the jdom-interest mailing list