This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

trying to set a parameter equal to an elements attribute


when I apply the following transformation I get a blank output. can anyone
tell me what I am doing wrong?

<!-- XML FILE -->
<root>
    <header volume="8"/>

    <article>
        <para>
            Some text here
       </para>
    </article>
</root>

<!-- XSLT FILE -->
<xsl:stylesheet version="1.0" xmlns:xsl="">
    <xsl:template match="root">
        <xsl:param name="vol"><xsl:value-of select="header[@volume]"/>
    </xsl:template>
</xsl:stylesheet>




Thanks
Noel


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]