The following using the select="." seems to work fine, too, actually, with
IE
5.0 Beta.
An alternative I also got to work was:
<xsl:eval>"mailto:"+this.text</xsl:eval>
Since "this" is available to script for the current node...
Instead of:
<xsl:eval>"mailto:"</xsl:eval><xsl:value-of select="."/>
The example I tried was...
The Data
--------
<stuff>
<email>smuench</email>
</stuff>
The Stylesheet
--------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template >
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="email">
<a><xsl:attribute name="href"><xsl:eval>"mailto:"</xsl:eval><xsl:value-of
select="."/></xsl:attribute></a>
</xsl:template>
</xsl:stylesheet>
____________________________________________________________________________
Steve | Consulting PM & XML Technology Evangelist | smuench@xxxxxxxxxx
Muench | Java Business Objects Dev Team | geocities.com/~smuench
Get to know JBO at http://javatools/jbo/owa/walkthrough
Do you XML? http://xml.us.oracle.com
--- Begin Message ---
Well this is an interesting question: What does "." stand for? Current
'something'. I think in the draft it refers to the current element, i.e.,
generally the element matched by the template/select combination. With the
MS
implementation, I'm not so sure of this. ...edN
-----Original Message-----
From: Steve Muench [SMTP:SMUENCH@xxxxxxxxxxxxx]
Sent: Sunday, November 15, 1998 8:04 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: More fun with MSIE
| o Lack of support for attribute value templates. Expressions usable
| in <xsl:value-of/> are also usable inside attribute values,
| delimited by {...} in the WD. MSIE does not support this, making
| generated links impossible. For example:
|
| <xsl:template match="email">
| <A HREF="mailto:{.}">
| <xsl:value-of select="."/>
| </A>
| </xsl:template>
I'm not familiar with what the "." syntax is implying, but I was able
to get a simple example like this to work fine.
The Data
--------
<stuff>
<email foobar="smuench"/>
</stuff>
The Stylesheet
--------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template >
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="email">
<a><xsl:attribute name="href"><xsl:eval>"mailto:"</xsl:eval><xsl:value-of
select="@foobar"/></xsl:attribute></a>
</xsl:template>
</xsl:stylesheet>
____________________________________________________________________________
Steve | Consulting PM & XML Technology Evangelist | smuench@xxxxxxxxxx
Muench | Java Business Objects Dev Team | geocities.com/~smuench
Get to know JBO at http://javatools/jbo/owa/walkthrough
Do you XML? http://xml.us.oracle.com
<< Message: Re: More fun with MSIE >>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--- End Message ---