RE: [xsl] Problem with simple xsl:when test expression

Subject: RE: [xsl] Problem with simple xsl:when test expression
From: Phil Mitchell <philip_mitchell@xxxxxxxxxxx>
Date: Tue, 03 Jul 2001 17:17:42 -0400


If I want to test that simpleType has a child element called 'restriction', which in turn has an attribute called base whose value is equal to 'string' then you can try:

<xsl:when test="restriction and restriction/@base='string'">


Wouldn't that be equivalent to: <xsl:when test="restriction[@base='string']"> ? And neither one is working for me...


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



Current Thread