XSL and XML

V

vsingr

Friends, Is it possible to generate a XML file using XSLT? If so can
Some one point me in the right direction as to how this can be
achieved?

Thanks
Sri
 
O

Oliver Wong

Friends, Is it possible to generate a XML file using XSLT? If so can
Some one point me in the right direction as to how this can be
achieved?

I haven't worked with XSLT in a while, but my understanding is that it
can produce any String output given a XML file as an input.

This tutorial gives an example of transforming an XML file into another
XML file: http://www.w3schools.com/xsl/xsl_languages.asp

- Oliver
 
O

Oliver Wong

Oliver Wong said:
I haven't worked with XSLT in a while, but my understanding is that it
can produce any String output given a XML file as an input.

I just saw your other post which is older, and yet much clearer on the
requirements. XSLT, as far as I know, needs XML as input. If you don't have
an XML file to start with, you can't use XSLT.

- Oliver
 
M

Malte

Friends, Is it possible to generate a XML file using XSLT? If so can
Some one point me in the right direction as to how this can be
achieved?

Thanks
Sri
Bascially, you can have XSLT generate anything. But you have to start
with an XML input. This may be transformed into another XML file.
 
A

Alan Krueger

Friends, Is it possible to generate a XML file using XSLT? If so can
Some one point me in the right direction as to how this can be
achieved?

http://www.w3.org/TR/xslt#output

Note that the method attribute can be "xml".

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:eek:utput method="html"/>
<xsl:template match="/">
<outputDocument>
<xsl:apply-templates/>
</outputDocument>
</xsl:template>
<!-- ... -->
</xsl:stylesheet>
 

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
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top