Subject: RE: [xsl] Issues with output of IMG, LINK (css) tags and literal ? Parsers faulty or ?? From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 11 Sep 2003 09:03:11 +0100 |
Use <xsl:output method="html"> Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > SANWAL, ABHISHEK (HP-Houston) > Sent: 11 September 2003 04:21 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Issues with output of IMG, LINK (css) tags and > literal ? Parsers faulty or ?? > > > 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.sanwal@xxxxxx > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Issues with output of IMG, Dimitre Novatchev | Thread | Re: [xsl] Issues with output of IMG, David Carlisle |
RE: [xsl] Could anyone tell the sig, Michael Kay | Date | RE: [xsl] how to pass parameters do, Michael Kay |
Month |