XSL Working draft question

Subject: XSL Working draft question
From: Jeremy CALLES <Jeremy.Calles@xxxxxxxxxxxxxxx>
Date: Thu, 20 Aug 1998 14:35:19 +0200
In the 2.7.11.3 paragraph of the XSL WD, Attribute Value Templates is
explain.

But in the example 

<xsl:define-constant name="image-dir" value="/images"/>

<xsl:template match="photograph">
<IMG SRC="{constant(image-dir)}/{href}"
WIDTH="{size/attribute(width)}"/>
</xsl:template>

With this source

<photograph>
  <href>headquarters.jpg</href>
  <size width="300"/>
</photograph>

I don't understand this match: size/attribute(width)
Normally an attribute should be matched by the command
size[attribute(width)],
according to the 2.6.8 paragraph.

Is it a typo or a new mean of matching attributes especially for
Attribute Value Templates.

Thanks
-- 
Jeremy CALLES  --- jcalles@xxxxxxxxxx
home page      --- http://www.mygale.org/07/jcalles


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


Current Thread