> Things are simpler with XSL 2.0 where you can just use regular
> expressions to match anything relatively painlessly. But with XSL 1.0
> you can use the build in string manipulation functions for some help....

Well, the specific use-case for $currentpage was a bit different...

<xsl:template match="dri:xref">
    <a>
        <xsl:attribute name="href"><xsl:value-of
select="@target"/></xsl:attribute>
        <xsl:if test="($currentpage)=(@target)">
            <xsl:attribute name="class">
                <xsl:text>current</xsl:text>
            </xsl:attribute>
        </xsl:if>
        <xsl:apply-templates />
    </a>
</xsl:template>

But as long as I'm taking the trouble to build $currentpage to begin
with, no reason not to use it for other things.

Dorothea

-- 
Dorothea Salo                [EMAIL PROTECTED]
Digital Repository Librarian      AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to