Re: [xsl] XSL-FO & Selecting Attributes

Subject: Re: [xsl] XSL-FO & Selecting Attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 20 Apr 2005 17:20:45 +0100
      You may also want to use an attribute-value-template to get the
   value of an attribute in your result.

    <xsl:template match="publications/Item">
   <xsl:value-of select="{@Sector}"/>

No you never use {} in XPath expressions (it would just be a fatal
syntax error) You use {} in XSLT attributes that take attribute value
templates, but these attributes never take XPath expressions.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread