[xsl] Issues with output of IMG, LINK (css) tags and   literal ? Parsers faulty or ??

Subject: [xsl] Issues with output of IMG, LINK (css) tags and   literal ? Parsers faulty or ??
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Wed, 10 Sep 2003 22:20:51 -0500
I came across a lot of issues in passing the IMG and CSS tags across
from my XSL to the output HTML

When I used the standard way to output them the XSL would break or the
output will not contain them.

So I looked online and found the following ways of putting these tags

<xsl:element name="LINK">
	<xsl:attribute name="REL">stylesheet</xsl:attribute>
	<xsl:attribute name="Type">text/css</xsl:attribute>
	<xsl:attribute name="HREF">mycss.css</xsl:attribute>

<link rel="stylesheet" type="text/css" href= "mycss.css"></link> 

<link rel="stylesheet" type="text/css" href= "mycss.css"/>

<xsl:attribute name="src"><xsl:value-of

 <xsl:attribute name="width">
 <xsl:value-of select="@ImageURI" /> 
 <xsl:attribute name="height">
 <xsl:value-of select="ImageURI" /> 

But whichever way I send it out it eliminates the "closing tag" </...>
or the "/" in the single close tag <..../>

WHY DOES IT DO THAT ? This is done by XMLSpy (internal XSLT engine) and
MSXSL parser 4.0

Since all my XML and XSLs are wellformed I would like my HTML to be as
well. So that I can "pretty print" the same in XMLSpy.

Also MSXSL 4.0 and System.Xml both have issues with any &nbsp; in the
literal code or in any <xsl:text> tags.

Someone kindly tell me whats going on here ?

Abhishek Sanwal
HP - Houston Campus

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

Current Thread