[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Something like an attribute-set, but different
Geraint North wrote: > Thanks for that. > > I'm having difficulty getting the desired effect, though (either with > params or attribute sets), which I think is due to my misunderstanding > of Xpath query syntax. I've constructed a very small case that > illustrates my misunderstanding. > > Within an attribute-set, the following evaluates as true > > <xsl:when test="/book"> > > But the following does not: > > <xsl:when test="/book/info[1]"> > nor does > <xsl:when test="/book/info"> http://www.w3.org/TR/xslt#attribute-sets <!-- Category: top-level-element --> <xsl:attribute-set name = qname use-attribute-sets = qnames> <!-- Content: xsl:attribute* --> </xsl:attribute-set> I.e. the content of an attribute-set can be attribute only. Where are you using the xsl:choose? regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]