RE: [xsl] some tags not getting closed in xsl output

Subject: RE: [xsl] some tags not getting closed in xsl output
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Thu, 12 Jul 2001 12:21:41 +0100
Yogesh,
I guess you didn't try output method="xml"

<?xml version="1.0" encoding="utf-8" ?>
<test />

with this stylesheet in xalan

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

	<xsl:template match="/">
		<html>
		<body>
			<img src="xx.gif" />
			<select></select>
		</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

produces

<html>
<body>
<img src="xx.gif"><select></select>
</body>
</html>

this stylesheet in xalan

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" />
	<xsl:template match="/">
		<html>
		<body>
			<img src="xx.gif" />
			<select></select>
		</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

produces

<?xml version="1.0" encoding="UTF-8"?>
<html><body><img src="xx.gif"/><select/></body></html>

which looks ok to me

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Yogesh
>Sent: 12 July 2001 11:59
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: RE: [xsl] some tags not getting closed in xsl output
>
>
>HI,
>I am using <html>all remaining stuff.</html>
>Here I am not getting input br img closed but select is getting closed.I
>tried with output method="xml" also.
>Please advice
>


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


Current Thread