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

Re: hyperlink

Subject: Re: hyperlink
From: Paul_B_Grimes@xxxxxxxxxx
Date: Thu, 19 Jul 2001 09:07:28 -0700
generate id hyperlink xml
Hi Jeni,
    Thank you so much for your reply.  I've been stuck for quite  a while.
The suggestion you made seems to be working, but I am having trouble with
the link being displayed.  When I click on a 'project title' in the table,
the url changes, showing that a different xml id is being displayed.
   eg.    http://yadda/yadda/yadda/project.xml#IDARE2GB  or
http://yadda/yadda/yadda/project.xml#IDA3B2GB
So, it appears that the  <a href="#{generate-ed}"> is working fine.  I have
"opened links in a new window" by right clicking the link, and it brings up
the url with a new #ID, but shows only a blank page.
     This Leads me to believe that I am still to blind in the xsl world to
figure out how to display the linked 'description' correctly (even with a
great example at my fingertips).
If there is something simple I may be overlooking, I would greatly
appreciate your help (as I do already).

Thanks much

Paul Grimes

>* a generated ID for the project using generate-id()
>
>     generate-id()
>
>These each have advantages and disadvantages. The first two will stay
>the same every time you perform the transformation, whereas the
>generated ID might change. The project titles may not be unique -
>that's something you have to check in your source - and are fairly
>long. The position of the project takes a long time to calculate.
>
>Taking the last option, you need to create a link that uses this ID
>within the table cell holding the project title:
>
>  <td>
>    <div class="row">
>      <a href="#{generate-id()}">
>        <xsl:value-of select="project_title" />
>      </a>
>    </div>
>  </td>
>
>and create an anchor for the project when you give its description
>further down the page, which probably looks something like:
>
><xsl:template match="project">
>  <h2>
>    <a name="{generate-id()}" id="{generate-id()}">
>      <xsl:value-of select="project_title" />
>    </a>
>  </h2>
>  <xsl:apply-templates select="description" />
></xsl:template>


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


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.