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

RE: Can anyone point me in the right direction?

Subject: RE: Can anyone point me in the right direction?
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Fri, 14 Nov 2003 16:29:52 +0100
patricia larue
> -----Original Message-----
> From: Patricia LaRue
>
> I need to point to different worksheet nodes in one
> xml file.  Using an xsl, I need to list the worksheet
> names (as XLink, XPointer, href, whatever works) and
> jump to worksheet section when worksheet name is
> selected.
>

Quite compact for a problem description, wouldn't you agree?

Anyway, so the source XML looks like (guessing away here):

<root>
  <worksheet>ws_name_1</worksheet>
  <worksheet>ws_name_2</worksheet>
  ...
</root>

Let's conveniently suppose your output is HTML, and you need to create
hyperlinks for the worksheets in question.

<xsl:template match="worksheet">

  <a><xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute>
    <xsl:value-of select=".">
  </a>

</xsl:template>

would yield

<a href="ws_name_1">ws_name_1</a>
<a href="ws_name_2">ws_name_2</a>

> I've read all about XLinks and XPointer but do these
> work yet?  How should I be doing this?
>

Why would you need these? (unless, of course, the problem is totally
different from what I've guessed it to be...)


Hope this helps!

Cheerz,

Andreas


 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.