[jdom-interest] output escaping again
Jason Hunter
jhunter at acm.org
Fri Sep 7 15:32:32 PDT 2001
I'm not sure I like the idea of XMLOutputter interpreting PIs instead of
outputting them. Notice in the JAXP spec it says, "Result DOM trees may
also have PI_DISABLE_OUTPUT_ESCAPING and PI_ENABLE_OUTPUT_ESCAPING
inserted into the tree." and thta's just what you're seeing (those are
Java constants for the PI strings). You could argue this should be a
special case. I'm curious what other output tools follow this PI
instead of outputting it. Anyone know?
-jh-
Frank Spychalski wrote:
>
> Hi,
>
> sorry to bother you again, but nobody reacted to my first mail (you could at
> least tell me that it's a bad idea or flame me or whatever ;-))
>
> Here 's the problem:
> I transform a document, during the transformation some text is inserted with
> <xsl:text disable-output-escaping="yes">. When I take the Document from the
> JDOMResult and print it with the XMLOuputter, the result looks like:
>
> ...
> <?javax.xml.transform.disable-output-escaping?>&<?javax.xml.transform.en
> able-output-escaping?>
> ...
>
> Am I the only one who would like to have a way to see '&' instead?
>
> I have patched the XMLOutputter and added a method setProcessPI() which
> switches between these two modes. Does this make sense? And if yes, how can
> I commit my changes?
>
> bye
> Frank
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<
> sitewaerts GmbH
> Hebelstraße 15
> D-76133 Karlsruhe
>
> Tel: +49 (721) 920 918 0
> Fax: +49 (721) 920 918 29
> http://www.sitewaerts.de
> >>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list