This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xml to html paragraphing
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xml to html paragraphing
- From: "John Wang" <jwang at mincron dot com>
- Date: Thu, 29 Mar 2001 11:48:57 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of David Carlisle
Sent: Thursday, March 29, 2001 11:10 AM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] xml to html paragraphing
> when i generate an html the tags are show as <p>
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
<p> hello </p>
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