[TxMt] Re: XSLT question (Context: Markdown)

Quentin Stafford-Fraser quentin at pobox.com
Mon May 22 14:08:15 UTC 2006


Stefan Brantschen <sbr at ...> writes:

> 
> <xsl:template name="get-version-date">
>    <xsl:param name="vers" />
>    <xsl:value-of select="//div[ <at> class='version'][ <at> v=$vers]" />
> </xsl:template>
> 
> I can get easily the value of a specific "version div", such as the  
> string "Change description v1.0". But how do I write the select  
> statement to get "d" of a specific version instead?

Stefan - 

I think 

<xsl:value-of select="//div[@class='version'][@v=$vers]/@d" />

may do it?

Quentin




More information about the textmate mailing list