|
[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?
> -----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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








