The output of xml

Z

Zhou Lei

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.
 
M

Martin Honnen

Zhou said:
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" />
 
Z

Zhou Lei

Martin Honnen said:
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.


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" />

Okay thank you, but I know about writing a script and a VB program, and
adding method does not work...
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top