[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: More fun with MSIE


Subject: RE: More fun with MSIE
From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx>
Date: Sun, 15 Nov 1998 21:05:12 -0500

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



Current Thread
Keywords
xml