The output of xml

Discussion in 'XML' started by Zhou Lei, Mar 5, 2005.

  1. Zhou Lei

    Zhou Lei Guest

    Hello I have transformed the XML to XHTML document and would like to
    validate the output, how can I save the XML output result (XHTML)? I
    transform it on client side. And the server-side transformation always
    eliminate a slash, for example if I want the result be <img src="a.gif" />,
    the result will always be <img src="a.gif"> without the slash. The server is
    running Apache with cocoon. Anyone could help on that, thank you.
    Zhou Lei, Mar 5, 2005
    #1
    1. Advertising

  2. Zhou Lei wrote:

    > I have transformed the XML to XHTML document and would like to
    > validate the output, how can I save the XML output result (XHTML)? I
    > transform it on client side.


    IE 6 uses MSXML 3 to do XSLT 1.0 transformations, you can write a simple
    script or VB program to perform the transformation with MSXML and write
    the result to a file which you can validate.

    > And the server-side transformation always
    > eliminate a slash, for example if I want the result be <img src="a.gif" />,
    > the result will always be <img src="a.gif"> without the slash. The server is
    > running Apache with cocoon.


    That sounds as if you get the XSLT output method html instead of xml so
    perhaps you need to add
    <xsl:eek:utput method="xml" />

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Mar 5, 2005
    #2
    1. Advertising

  3. Zhou Lei

    Zhou Lei Guest

    "Martin Honnen" <> ????
    news:4229a410$0$1091$-online.net...
    >
    >
    > Zhou Lei wrote:
    >
    > > I have transformed the XML to XHTML document and would like to
    > > validate the output, how can I save the XML output result (XHTML)? I
    > > transform it on client side.

    >
    > IE 6 uses MSXML 3 to do XSLT 1.0 transformations, you can write a simple
    > script or VB program to perform the transformation with MSXML and write
    > the result to a file which you can validate.
    >
    > > And the server-side transformation always
    > > eliminate a slash, for example if I want the result be <img src="a.gif"

    />,
    > > the result will always be <img src="a.gif"> without the slash. The

    server is
    > > running Apache with cocoon.

    >
    > That sounds as if you get the XSLT output method html instead of xml so
    > perhaps you need to add
    > <xsl:eek:utput method="xml" />
    >
    > --
    >
    > Martin Honnen
    > http://JavaScript.FAQTs.com/


    Okay thank you, but I know about writing a script and a VB program, and
    adding method does not work...
    Zhou Lei, Mar 5, 2005
    #3
    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. Grant Harmeyer

    asp:Xml control and Xml output

    Grant Harmeyer, Feb 3, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,079
    Chris Jackson
    Feb 3, 2004
  2. SV
    Replies:
    1
    Views:
    609
    Mukul Gandhi
    Aug 16, 2005
  3. Lukas
    Replies:
    3
    Views:
    788
    spiff
    Nov 10, 2005
  4. Jim Andersen

    Sort xml and output xml

    Jim Andersen, Dec 5, 2006, in forum: XML
    Replies:
    10
    Views:
    1,237
    Jim Andersen
    Dec 8, 2006
  5. Erik Wasser
    Replies:
    5
    Views:
    437
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page