Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > The output of xml

Reply
Thread Tools

The output of xml

 
 
Zhou Lei
Guest
Posts: n/a
 
      03-05-2005
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.


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      03-05-2005


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
<xslutput method="xml" />

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
Zhou Lei
Guest
Posts: n/a
 
      03-05-2005

"Martin Honnen" <(E-Mail Removed)> ????
news:4229a410$0$1091$(E-Mail Removed)-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
> <xslutput 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...


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort xml and output xml Jim Andersen XML 10 12-08-2006 10:40 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty Lukas XML 3 11-10-2005 02:25 PM
Multiple Input XML documents to produce one output XML SV XML 1 08-16-2005 10:37 AM
asp:Xml control and Xml output Grant Harmeyer ASP .Net 1 02-03-2004 03:25 PM



Advertisments