[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL Working draft question

Subject: XSL Working draft question
From: Jeremy CALLES <Jeremy.Calles@xxxxxxxxxxxxxxx>
Date: Thu, 20 Aug 1998 14:35:19 +0200
xsl working with attributes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.