[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Can someone help me understand why this isn't working?

Subject: [xsl] Can someone help me understand why this isn't working?
From: "Luke Shannon" <lshannon@xxxxxxxxxxxxxxx>
Date: Wed, 19 Jan 2005 18:08:32 -0500


I have a basic example I am trying to get working to convert ;&lt;P&gt; to

Here is the XML:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
<greeting>&lt;P&gt;Hello, world!&lt;/P&gt;</greeting>

Here is the XSL:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
<xsl:output method="html"/>
<xsl:template match="/">
<title>Today's greeting</title>
<xsl:apply-templates select="greeting"/>
<xsl:template match="P">

I am guessing that the value of greeting selected in the apply-templates
call contains &lt;P&gt;Hello, world!&lt;/P&gt;

I was hoping because the output type was HTML a result tree containing
<p>Hello, world!</p> would be created that my match="P" would process (my
apologies if my terminology is not correct, still getting up to speed with

Am I thinking about this the wrong way? Any advice would help.



Current Thread