This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xml to html paragraphing


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 &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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]