Problem transforming with Xalan

Discussion in 'XML' started by Collin VanDyck, Nov 10, 2003.

  1. 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.transform.disable-output-escaping?>
    [actual escaped text]
    <?javax.xml.transform.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, Nov 10, 2003
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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.transform.disable-output-escaping?>
    > [actual escaped text]
    > <?javax.xml.transform.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, Nov 11, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dwhitford
    Replies:
    0
    Views:
    360
    dwhitford
    May 14, 2004
  2. David Furey
    Replies:
    0
    Views:
    1,074
    David Furey
    Jun 29, 2003
  3. Yves Forkl
    Replies:
    0
    Views:
    463
    Yves Forkl
    Oct 28, 2003
  4. cvissy
    Replies:
    0
    Views:
    600
    cvissy
    Nov 16, 2004
  5. Replies:
    4
    Views:
    85
Loading...

Share This Page