You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Neelam Checknita <NC...@burntsand.com> on 2000/03/03 20:57:24 UTC

urgent! html result not correct?

Hi

I'm using Xalan to convert an xsl stylesheet plus and xml into an HTML page.
However, I don't think my results are correct.  Consider
the following inputs:

XML:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"?>
<greeting>
Hello World.
</greeting>

XSL:

<?xml version="1.0"?>
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<head><title>Greeting</title></head>
<body>Words of greeting:<br/>
	<b><i><u>xsl:value-of select="greeting"/></u></i></b>
</body>
</html>

HTML result:

<html>
<head>
<title>Greeting</title>
</head>
<body>Words of greeting:<br>
<b><i>
<u>xsl:value-of select="greeting"/&gt;</u>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</i></b>
</body>
</html>

My problem is the line with the ^^^^'s under it:  why is that xsl tag in the
parsed output?  should that be removed and simply say:  "Hello World"?

Your help will be *extremely* appreciated!

Thanks,

nchecknita


RE: urgent! html result not correct?

Posted by Sean Forde <sf...@lizardtech.com>.
I believ you are missing an open angle bracket. That is,
you should replace
	xsl:value-of select="greeting"/>
with
	<xsl:value-of select="greeting"/>

	-Sean

-----Original Message-----
From: Neelam Checknita [mailto:NChecknita@burntsand.com]
Sent: Friday, March 03, 2000 11:57 AM
To: 'xalan-dev@xml.apache.org'
Subject: urgent! html result not correct?


Hi

I'm using Xalan to convert an xsl stylesheet plus and xml into an HTML page.
However, I don't think my results are correct.  Consider
the following inputs:

XML:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"?>
<greeting>
Hello World.
</greeting>

XSL:

<?xml version="1.0"?>
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<head><title>Greeting</title></head>
<body>Words of greeting:<br/>
	<b><i><u>xsl:value-of select="greeting"/></u></i></b>
</body>
</html>

HTML result:

<html>
<head>
<title>Greeting</title>
</head>
<body>Words of greeting:<br>
<b><i>
<u>xsl:value-of select="greeting"/&gt;</u>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</i></b>
</body>
</html>

My problem is the line with the ^^^^'s under it:  why is that xsl tag in the
parsed output?  should that be removed and simply say:  "Hello World"?

Your help will be *extremely* appreciated!

Thanks,

nchecknita