Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

XSL and XML

Thread view: 
vsingr@gmail.com - 25 Nov 2005 17:53 GMT
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
Oliver Wong - 25 Nov 2005 18:14 GMT
> 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
Oliver Wong - 25 Nov 2005 18:16 GMT
>> 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.

   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
Malte - 25 Nov 2005 18:32 GMT
> 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.
Alan Krueger - 26 Nov 2005 01:47 GMT
> 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:output method="html"/>
  <xsl:template match="/">
    <outputDocument>
      <xsl:apply-templates/>
    </outputDocument>
  </xsl:template>
  <!-- ... -->
</xsl:stylesheet>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.