Rich Manalang schrieb:
> Here's an early sample of what I was thinking of:
>
> http://manalang.com/jquery/docs/gotapi.xml
>
> I need to figure out how to add the method signatures into the anchor.
I'm using these XSLT snippets to generate ids and hrefs

    <xsl:template name="href">
        <xsl:attribute name="href">
            <xsl:text>#</xsl:text>
            <xsl:value-of select="@name"/>
            <xsl:for-each select="params">
                <xsl:value-of select="translate(@type, '&lt;&gt;', '')"/>
            </xsl:for-each>
        </xsl:attribute>
    </xsl:template>
   
    <xsl:template name="id">
        <xsl:attribute name="id">
            <xsl:value-of select="@name"/>
            <xsl:for-each select="params">
                <xsl:value-of select="translate(@type, '&lt;&gt;', '')"/>
            </xsl:for-each>
        </xsl:attribute>
    </xsl:template>:

And the simply called with this inside a anchor:
<xsl:call-template name="href" />

Or with this inside the target element (li in my case):
<xsl:call-template name="id" />

You could extract the common part of both into another template...

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to