[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Issues with output of IMG, LINK (css) tags and  

Subject: 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
img link
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 &nbsp; in the
literal code or in any <xsl:text> tags.

Someone kindly tell me whats going on here ?

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.