Subject: [xsl] Several XSLT using one XSL sheet From: Aitor San Juan <asanjuan@xxxxxxxxxxxxxx> Date: Tue, 10 Feb 2004 17:16:50 +0100 |
Hello, This is my problem: This XML file contains all the downloadable documents of a user grouped by section. Each downloadable document only belongs to one section. A section can have many documents. This my question: I wonder how I could generate an HTML page for each section listing the documents that belonging to it with only one XSL transformation, i.e., using only one XSL style sheet. Is this possible? Any hint would be highly appreciated. Thanks in advance THIS IS A SAMPLE INPUT FILE: ============================ <?xml version="1.0" encoding="ISO-8859-1"?> <downloads> <section code="S1"> <name>section 1</name> <doc> <date>3 feb 2004</date> <name>This is Doc s1</name> <url>http://www.myhost.net/username1/s1_1.pdf</url> <size>14.14</size> <unit>Kb</unit> <pagenum>14</pagenum> <format>/images/pdf.gif</format> </doc> </section> <section code="S2"> <name>section 2</name> <doc> <date>2 feb 2004</date> <name>This is Doc 1 s2</name> <url>http://www.myhost.net/username1/s2_1.doc</url> <size>26.26</size> <unit>Kb</unit> <pagenum>26</pagenum> <format>/images/word.gif</format> </doc> <doc> <date>5 feb 2004</date> <name>This is Doc 2 s2</name> <url>http://www.myhost.net/username1/s2_2.doc</url> <size>20.20</size> <unit>Kb</unit> <pagenum>20</pagenum> <format>/images/word.gif</format> </doc> </section> <section code="S3"> <name>section 3</name> <doc> <date>6 feb 2004</date> <name>This is Doc 1 s3</name> <url>http://www.myhost.net/username1/s3_1.pdf</url> <size>12.12</size> <unit>Kb</unit> <pagenum>12</pagenum> <format>/images/pdf.gif</format> </doc> <doc> <date>4 feb 2004</date> <name>This is Doc 2 s3</name> <url>http://www.myhost.net/username1/s3_2.xls</url> <size>37.37</size> <unit>Kb</unit> <pagenum>37</pagenum> <format>/images/excel.gif</format> </doc> </section> </downloads> ************ LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE ************* Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota legez babestuta dagoena. Zuri zuzendua ez bada, bidali duenari esan eta ezabatu, inori berbidali edo gorde gabe,legeak debekatzen duelako mezuak erabiltzea baimenik gabe. -------------------------------------------------------------------------- Este mensaje puede contener información confidencial, en propiedad o legalmente protegida. Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado está prohibido legalmente. -------------------------------------------------------------------------- This message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, please notify it to the sender and delete without resending or backing it, as it is legally prohibited. ************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem with xslt recursi, Andrew Welch | Thread | Re: [xsl] Several XSLT using one XS, David Carlisle |
[xsl] Problem with xslt recursion, Roopesh Kumar | Date | Re: [xsl] Several XSLT using one XS, David Carlisle |
Month |