Problem transforming with Xalan

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Collin VanDyck

    #1

    Problem transforming with Xalan

    I'm in kind of a bind here.. I've got a transformation that disables output
    escaping when I copy what is XML out of an element attribute in the source
    tree back into the result tree as an XML fragment. I've run this standalone
    using Xalan2/Cooktop, and it works correctly.

    However, in my application, instead of the XML getting inserted into the
    result tree, I get the following:

    <?javax.xml.tra nsform.disable-output-escaping?>
    [actual escaped text]
    <?javax.xml.tra nsform.enable-output-escaping?>

    inserted into the source tree. I do not get the PIs when running it
    standalone in Cooktop/Xalan2.

    It seems like for some reason it is not processing those instructions. In
    my Java code, is there something I need to set during the transform to force
    this to happen?

    thanks,

  • Collin VanDyck

    #2
    Re: Problem transforming with Xalan

    Hey

    I figured it out. The disabling of output escaping is apparently reliant
    upon a serialization step. This is why I was not seeing it when using
    JDOM's XMLOutputter.


    "Collin VanDyck" <send_mail_to_c ollin@hannonhil l.com> wrote in message
    news:d49ab91359 a67d4f4779b7211 8491018@news.te ranews.com...[color=blue]
    > I'm in kind of a bind here.. I've got a transformation that disables[/color]
    output[color=blue]
    > escaping when I copy what is XML out of an element attribute in the source
    > tree back into the result tree as an XML fragment. I've run this[/color]
    standalone[color=blue]
    > using Xalan2/Cooktop, and it works correctly.
    >
    > However, in my application, instead of the XML getting inserted into the
    > result tree, I get the following:
    >
    > <?javax.xml.tra nsform.disable-output-escaping?>
    > [actual escaped text]
    > <?javax.xml.tra nsform.enable-output-escaping?>
    >
    > inserted into the source tree. I do not get the PIs when running it
    > standalone in Cooktop/Xalan2.
    >
    > It seems like for some reason it is not processing those instructions. In
    > my Java code, is there something I need to set during the transform to[/color]
    force[color=blue]
    > this to happen?
    >
    > thanks,
    >[/color]

    Comment

    Working...