[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Several XSLT using one XSL sheet

Subject: Several XSLT using one XSL sheet
From: Aitor San Juan <asanjuan@xxxxxxxxxxxxxx>
Date: Tue, 10 Feb 2004 17:16:50 +0100
excel.gif
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.