xsl-list
[Top] [All Lists]

Re: Use XSL:Variable

2005-02-01 08:44:09

     The following should work for you:

        <xsl:param name="fileExtn">
             <xsl:value-of select="/CONTROL/ObjectFormat[1]/@FileExtension"/>
        </xsl:param>


In almost all circumstances it is better to use


        <xsl:param name="fileExtn"
           select="/CONTROL/ObjectFormat[1]/@FileExtension"/>

as that passes the attribute node itself, which is more efficient and
more useful, rather than using the form with value-of which generates a
result tree fragment consisting of a root node and a text node with the
string value of the attribute.

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>