Re: [xsl] Formatting text to include html tags...?

Subject: Re: [xsl] Formatting text to include html tags...?
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Mon, 5 Nov 2001 10:07:24 -0000
----- Original Message -----
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, November 05, 2001 9:53 AM
Subject: [xsl] Formatting text to include html tags...?

> Hello again problem solvers
> I have another problem that I hope you can help me with, which is somewhat
> the opposite of a problem I posted last week.
> I have an xml document like this:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?xml:stylesheet type="text/xsl" href="Test.xsl"?>
> <Test>
> This <B>is <I>a </I>Test</B>.
> </Test>
> And an xsl document to output it on a browser:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:transform xmlns:xsl="";
> version="1.0">

i would recc using the xsl:stylesheet tag for conformity ( though not
required ), instead of xsl:transform

<xsl:stylesheet version="1.0"


try using <xsl:output method="html"/> to force your parser into outputting
proper html

whitespace ( tabs, spaces, newlines etc ) are controlled by a number of

- <xsl:strip-space elements=""/> or <xsl:preserve-space/>
- use xml:space attribute in source xml
- use normalize-space() function

otherwise u may have to tell us which parser and on what OS for us to know
your problem.

hth. jim fuller

> <xsl:template match="/">
> <html>
> <body>
> <xsl:value-of select="Test"/>
> </body>
> </html>
> </xsl:template>
> </xsl:transform>
> Output is:
> This is a Test.
> That is, without any of the tags being in effect.
> Is there a way that I can do this? The solution should also enable newline
> (<br/>) tags, if possible.
> Thanks in advance
> Ragulf Pickaxe :)
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread