Subject: [xsl] intra document link From: Nikolas.Nehmer@xxxxxxxxxxx (Nikolas Nehmer) Date: Wed, 18 Feb 2004 22:50:24 +0100 |
Hi, sorry it's me again. I'm looking for a possibility of intra document links with xhtml. For better imagination a little example: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="../../XSL/publication.xsl"?> <Book xmlns="http://www.iese.fhg.de/Publication/Book" xmlns:iese.Publication="http://www.iese.fhg.de/Publication" xmlns:iese.Chapter="http://www.iese.fhg.de/Chapter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.iese.fhg.de/Publication/Book ../XSD/book.xsd"> <iese.Publication:title>Systemsoftware Grundlagen moderner Betriebssysteme</iese.Publication:title> <iese.Publication:date>2001-01-01</iese.Publication:date> <iese.Publication:abstract>abstract...</iese.Publication:abstract> <iese.Publication:rating>top</iese.Publication:rating> <iese.Publication:location>http://www.uni-kl.de</iese.Publication:locati on> <iese.Publication:confidentiality>top secret</iese.Publication:confidentiality> <iese.Publication:author href="../../../Person/XML/person_JuergenNehmer.xml"/> <ISBN>3-89864-115-5</ISBN> <publisher>dpunkt.verlag</publisher> <chapters> <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 1</iese.Chapter:heading> <iese.Chapter:firstpage>1</iese.Chapter:firstpage> <iese.Chapter:lastpage>15</iese.Chapter:lastpage> </iese.Chapter:Chapter> <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 2</iese.Chapter:heading> <iese.Chapter:firstpage>16</iese.Chapter:firstpage> <iese.Chapter:lastpage>30</iese.Chapter:lastpage> </iese.Chapter:Chapter> <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 3</iese.Chapter:heading> <iese.Chapter:firstpage>31</iese.Chapter:firstpage> <iese.Chapter:lastpage>45</iese.Chapter:lastpage> </iese.Chapter:Chapter> <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 4</iese.Chapter:heading> <iese.Chapter:firstpage>46</iese.Chapter:firstpage> <iese.Chapter:lastpage>60</iese.Chapter:lastpage> </iese.Chapter:Chapter> <iese.Chapter:Chapter> <iese.Chapter:heading>Kapitel 5</iese.Chapter:heading> <iese.Chapter:firstpage>61</iese.Chapter:firstpage> <iese.Chapter:lastpage>75</iese.Chapter:lastpage> </iese.Chapter:Chapter> </chapters> </Book> All level 2 elements should be display in a table or <ul> for example except the chapters. 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. Best regards, Nick XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Processing only certain n, Andreas L. Delmelle | Thread | RE: [xsl] intra document link, Andreas L. Delmelle |
[xsl] Processing only certain nodes, Glenn MacGregor | Date | RE: [xsl] Using XSL to Translate Re, Hart, Leo |
Month |