Re: [docbook-apps] Something like an attribute-set, but different

From
Dave Pawson <>
Date
2007-12-14T12:57:55+00:00
ID
Thread
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