Hi Guys!!
I have an XML file and I'd like to convert it to a text output with XSLT.
Consider the following:
<help>
<header>Hello!</header>
<subject> Re: XSLT Help!! </subject>
<body>Can you guys help me out???</body>
<footer>Thanks<footer>
</help>
I'd like to have this in the following format in text!
Hello!
Re: XSLT Help!!
Can you guys help me out???
Thanks
My limited knowledge of XSLT can only output the data in a single line.
Can someone advice as to how I'd be solving the problem????
Cheers!!!
-
XML to Text with XSLT (4 messages)
- Posted by: Anand Jayaraman
- Posted on: May 31 2004 04:26 EDT
Threaded Messages (4)
- XML to Text with XSLT by Paul Strack on May 31 2004 11:49 EDT
- XML to Text with XSLT by Ruslan Zenin on May 31 2004 21:34 EDT
- XML to Text with XSLT by Arun Nair on June 02 2004 10:06 EDT
- XML to Text with XSLT by Race Condition on July 07 2004 15:41 EDT
-
XML to Text with XSLT[ Go to top ]
- Posted by: Paul Strack
- Posted on: May 31 2004 11:49 EDT
- in response to Anand Jayaraman
Use the <xsl:text> tag to insert additional spacing into your generated text file. For example, the following would insert a line break:
<xsl:text>
</xsl:text> -
XML to Text with XSLT[ Go to top ]
- Posted by: Ruslan Zenin
- Posted on: May 31 2004 21:34 EDT
- in response to Anand Jayaraman
You can also consider to take a look at FOP Apache project. They have inplementation of XML formatting - FO
See http://xml.apache.org/fop/index.html -
XML to Text with XSLT[ Go to top ]
- Posted by: Arun Nair
- Posted on: June 02 2004 10:06 EDT
- in response to Ruslan Zenin
As said before the most easy job is to put <xsl:text>
FOP is not really required for this simple job but to generate other output formats like PDF probably FOP would help. -
XML to Text with XSLT[ Go to top ]
- Posted by: Race Condition
- Posted on: July 07 2004 15:41 EDT
- in response to Anand Jayaraman
Can someone advice as to how I'd be solving the problem?
Well, you might want to try RTFM. If that doesn't work, get a job at Burger King.