xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Borden" <jbor...@mediaone.net>
Subject RE: XSLT selection by node contents
Date Sat, 25 Mar 2000 14:59:12 GMT
Sean Kelly [mailto:kelly@ad1440.net]
> I want to write XSLT that looks like:
>
> <xsl:template match="location[starts-with(???,'iiop')]">
>    Do one thing.
> </xsl:template>
> <xsl:template match="not(location[starts-with(???,'iiop')])">
>   Do another thing
> </xsl:template>
>
> The question is ... what do I put in for ??? that selects the value of the
> text node of the location node?  Or is this even the right way to proceed?
>


	I would try:

	starts-with(.,'ioop') . being the way to express the current node.

	General XSL questions can also be directed to the

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Jonathan Borden


Mime
View raw message