[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: More fun with MSIE
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|