RE: [xsl] xml to html paragraphing

Subject: RE: [xsl] xml to html paragraphing
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Thu, 29 Mar 2001 11:48:57 -0600
It is bit complicate:

in your xsl file just write something like:

<xsl:template match="p">
<xsl:copy><xsl:value-of select="."></xsl:copy>
</xsl:template>

all content include <p> should be copied to your html final.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David Carlisle
Sent: Thursday, March 29, 2001 11:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] xml to html paragraphing


> when i generate an html the tags are show as &lt;p&gt;

You've posted 1001 messages saying that this happens to
you, but it would be clearer if you'd posted a single message with a
three line input file, your XSL and what you want to get out.


You almost certainly have that in the source rather than a p
element node.

That is I guess your source has
 &lt;p&gt; hello  &lt;/p&gt;
or equivalently
<![CDATA[<p> hello </p>]]>
(these will produce the same input to an XML parser)

whereas your source should have

<p> hello </p>

which markup would cause the XML parser to report an element node for p.



David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread