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
across.
<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>
</xsl:element>
<link rel="stylesheet" type="text/css" href= "mycss.css"></link>
<link rel="stylesheet" type="text/css" href= "mycss.css"/>
<img>
<xsl:attribute name="src"><xsl:value-of
select="@ImageURI"/></xsl:attribute>
</img>
<xsl:attribute name="width">
<xsl:value-of select="@ImageURI" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="ImageURI" />
</xsl:attribute>
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 in the
literal code or in any <xsl:text> tags.
Someone kindly tell me whats going on here ?
Abhishek Sanwal
HP - Houston Campus
abhishek(_dot_)sanwal(_at_)hp(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list