no tags in my xml-to-xml transformation, help....

Discussion in 'XML' started by yannicklaclau, Feb 28, 2005.

  1. my xml-to-xml transformation is outputting an xml header and then just
    text like this:

    <?xml version="1.0" encoding="iso-8859-1"?>e19dbb7b-5529-43a0......

    I've searched regarding this problem and it seems that if there's no
    match in your xsl template then by default everything gets spat out.

    But I've tested this with very definite matches in my template, and
    still there are no xml tags in the output.

    Has anyone seen this before? Any help much appreciated....

    Yannick
     
    yannicklaclau, Feb 28, 2005
    #1
    1. Advertisements

  2. yannicklaclau wrote:

    > my xml-to-xml transformation is outputting an xml header and then just
    > text like this:
    >
    > <?xml version="1.0" encoding="iso-8859-1"?>e19dbb7b-5529-43a0......
    >
    > I've searched regarding this problem and it seems that if there's no
    > match in your xsl template then by default everything gets spat out.
    >
    > But I've tested this with very definite matches in my template, and
    > still there are no xml tags in the output.
    >
    > Has anyone seen this before?


    We do not need to guess, try to reduce to the minimum necessary to show
    the problem, then post the relevant XML and XSLT here, and tell us which
    XSLT processor you use.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Feb 28, 2005
    #2
    1. Advertisements

  3. Ok, false alarm.

    As I suspected, it was a newbie issue. In case anyone else has this
    problem, the solution is to use copy-of instead of value-of. Pretty
    self-explanatory: value-of will output the value of the matched node;
    copy-of will output a complete copy of the matched node, including the
    tags.
     
    yannicklaclau, Feb 28, 2005
    #3
    1. Advertisements

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. Dean H. Saxe
    Replies:
    0
    Views:
    1,226
    Dean H. Saxe
    Jan 3, 2004
  2. Rob Nicholson
    Replies:
    3
    Views:
    1,010
    Rob Nicholson
    May 28, 2005
  3. Ranganath

    Custom Tags within Custom Tags.

    Ranganath, Oct 17, 2003, in forum: Java
    Replies:
    2
    Views:
    638
    Ranganath
    Oct 21, 2003
  4. Will
    Replies:
    8
    Views:
    591
    Steve Slatcher
    Nov 7, 2003
  5. Mike Conmackie
    Replies:
    4
    Views:
    980
    Mike Conmackie
    Apr 29, 2004
  6. Thierry
    Replies:
    5
    Views:
    560
    Peter Flynn
    Feb 15, 2006
  7. HL
    Replies:
    2
    Views:
    549
  8. Binaryx
    Replies:
    3
    Views:
    5,724
    Peter Flynn
    Apr 14, 2012
Loading...