[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

bookmarks

Subject: bookmarks
From: cookie king <cookieking@xxxxxxxxxxx>
Date: Wed, 03 Aug 2005 20:05:28 -0400
bookmark templates
I am looking for a small example of a working bookmark. i have several templates, and i can get them to work internally within the page but not externally.

here is a sample of my templates, but they do not work all the time. what i want to accomplish is to create a bookmark within the xml and link to that from an external source.

using these templates the link will appear in the address bar, but the page will not scroll to or go to the bookmark

<xsl:template match="bookmark">
<a>
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
<xsl:value-of select="."/>
</a>
</xsl:template>
<!-- support external and internal hyperlinks to a file or bookmark -->
<xsl:template match="bmarklink">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@url"/><!-- use for url external bookmark -->
<xsl:if test="@location">#<xsl:value-of select="@location"/>
</xsl:if>
</xsl:attribute>
<xsl:value-of select="."/>
</a>
</xsl:template>


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.