Subject: Re: [xsl] intra document link From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 18 Feb 2004 20:29:19 -0500 |
Hi, sorry it's me again.
I'm looking for a possibility of intra document links with xhtml. For better imagination a little example: ... <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 1</iese.Chapter:heading> ... For each chapter I would like to create a link, for example a href to that chapter. When you klick that link the visualisation for that Chapter should be displayed (e.g a table again). Creating the visualisation is not my problem, but I don't know if there is way to build those intra document links! Are there any possibilities, any suggestions?
I frist thought about declaring an ID attribute for any chapter but I don't know if I can point to that ID by html hrefs.
<!--TOC--> <xsl:for-each select="b:Book/b:chapters/iese.Chapter:Chapter"> <li> <a href="{generate-id(.)}"> <xsl:value-of select="iese.Chapter:heading"/> </a> </li> </xsl:for-each> ... <!--Body processing--> <xsl:for-each select="b:Book/b:chapters/iese.Chapter:Chapter"> <h3> <a name="{generate-id(.)}"> <xsl:value-of select="iese.Chapter:heading"/> </a> </h3> <!--rest of chapter processing--> </xsl:for-each>
-- Public courses: upcoming world tour of hands-on XSL training events Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong: 2004-05-17 Germany: 2004-05-24 England: 2004-06-07 World-wide on-site corporate, government & user group XML training!
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] intra document link, Andreas L. Delmelle | Thread | AW: [xsl] intra document link, Nikolas Nehmer |
RE: [xsl] intra document link, Andreas L. Delmelle | Date | [xsl] extracting sequences, Saverio Perugini |
Month |