|
Subject: RE: Rendering: filling tag attributes via XSLT From: Michael Strasser <M.Strasser@xxxxxxxxxxxxx> Date: Thu, 21 Sep 2000 09:44:54 +1000 |
> If you are using a compliant processor, use the attribute value template:
>
> <a href="#{@name}">Link</a>
>
> If you are using IE5's processor, use the old <xsl:attribute> method:
>
> <a>
> <xsl:attribute name="href">
> #<xsl:value-of select="@name"/>
> </xsl:attribute>
> Link
> </a>
This will work with IE5's processor to ensure you don't get extra
whitespace:
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat('#', @name)"/>
</xsl:attribute>
Link
</a>
--
Michael Strasser
Brisbane, Australia
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Rendering: filling tag attribut, Nick Browne | Thread | [ANN] XSLT-UK 01 Call for Speakers , Pawson, David |
| RE: XSL vs. XSLT and processors vs., Evan Lenz | Date | how to access the element which is , srirangababu thimmai |
| Month |