[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL Working draft question
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|