[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: Mon, 23 Jul 2001 08:17:09 -0700
xsl hyperlink apply template
Hello Jeni,

     I would like to thank you very much for your incredible level of
expertise and assistance with respect to my xsl woes.  You have been
extremely helpful to me over the last week are so and showed infinite
knowledge of xsl as well as patience for my 'newbie' questions.  I really
can't thank you enough, shedding light on certain aspects of xsl will
greatly broaden the functionality of my future xsl applications.
Thank You                                                 ^      ^
                                                                      @   @
Paul Grimes                                                    >
<-- me

\________/

"







Jeni Tennison <mail@xxxxxxxxxxxxxxxx>@lists.mulberrytech.com on 07/20/2001
02:35:32 AM

Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx

Sent by:  owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To:   Paul_B_Grimes@xxxxxxxxxx
cc:   xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re:  hyperlink

Hi Paul,

> Unfortunately, I was not able to get it to work using
> 'concat('proj', count(preceding-sibling::project))' either.
> Although, this in no way implies that it isn't the solution, as I
> have only been at this xml/xsl stuff for about a month. Does the
> generate-id() function need to be defined in the schema?

The generate-id() function is part of XSLT, so you don't need to
declare it in the schema.

Your main problem seems to be that while you've successfully created
the table with the links in it, the descriptions for the project don't
appear anywhere within the page. If you have a look at the HTML that's
generated from the transformation, you'll see that no anchors appear
on the page, so it's not surprising that the links don't work. You
have a template that matches p:project to give the description of the
project, but that template is never applied - you never apply
templates to the p:project elements.

To create the project descriptions, with anchors, further down the
page, you need to apply templates to the project elements using:

  <xsl:apply-templates select="p:current_projects/p:project" />

I suggest that you do this after the table. You probably won't see
anything happen when you click on one of the links in the table
because the there's no space within the page below the descriptions,
so they can't be moved up to the top. If you add a load of <br />
elements underneath the xsl:apply-templates then you'll see the
jumping behaviour you'd expect when you click on the links, i.e.:

<xsl:template match="/">
  <html>
    ...
    <body>
      <table width="100%" cellspacing="0">
        ...
      </table>
      <xsl:apply-templates select="p:current_projects/p:project" />
      <br />
      <br />
      ...
    </body>
  </html>
</xsl:template>

Hopefully once you see that working then you can concentrate on
getting it to display in the way you want it to display.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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






 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.