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]

SV: some tags not getting closed in xsl output


Hi Chris, hi Yogesh,

The example from Chris works better if you use

	<xsl:output method="xml" indent="yes" encoding="UTF-8"
media-type="text/html" omit-xml-declaration="yes"/>

because some browsers have problems with the xml-declaration.

/Uwe


-----Ursprungligt meddelande-----
Från: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]För Yogesh
Skickat: den 12 juli 2001 14:09
Till: xsl-list@lists.mulberrytech.com
Ämne: RE: [xsl] some tags not getting closed in xsl output


thanx alot it seems it will work
-Yogesh

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Chris Bayes
Sent: Thursday, July 12, 2001 4:52 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] some tags not getting closed in xsl output


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@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Yogesh
>Sent: 12 July 2001 11:59
>To: xsl-list@lists.mulberrytech.com
>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


 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]