|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] problem with proper counting
Hi xsl-list, I am not an experienced programmer and a novice in xml: I have a xml-document which contains sets of pages and I would like to translate it into html: <set id="set1"> <page id="page1">some texta</page> <page id="page2">some textb</page> <page id="page3">some textc</page> </set> <set id="set2"> <page id="page4">some textd</page> <page id="page5">some texte</page> </set> I have generated a table of contents which links to the pages (this is already working): <h1>set1</h1> <a href="#1-1">page1</a></br> <a href="#1-2">page2</a></br> <a href="#1-3">page3</a></br> <h1>set2</h1> <a href="#2-1">page4</a></br> <a href="#2-2">page5</a></br> Now I don`t know how to generate the anchors for the pages. It should look like: <p><a name="1-1">page1</a></p> <p><a name="1-2">page2</a></p> <p><a name="1-3">page3</a></p> <p><a name="2-1">page4</a></p> <p><a name="2-2">page5</a></p> Do I have to use an if-clause and something with counting in here? It would really help me a lot if anybody knew a solution for my problem. Thanks in advance, 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








