OUTPUT MULTIPLE HTML FILES WITH XSLT ?????


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????

  1. #1
    hassan Guest

    OUTPUT MULTIPLE HTML FILES WITH XSLT ?????


    using the microsoft parser 3 how can i output multiple html file from an xslt
    file ?

  2. #2
    Russell Jones Guest

    Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????

    You can either supply different source XML documents to the XSLT template or
    you can extract different items from a single XML document by passing
    different document fragments to the template or by setting parameter values
    to change the way the template processes the data.

    HTH,
    Russell Jones
    Sr. Web Development Editor,
    DevX.com

    "hassan" <mirzahassan@hotmail.com> wrote in message
    news:3b2592b1$1@news.devx.com...
    >
    > using the microsoft parser 3 how can i output multiple html file from an

    xslt
    > file ?




  3. #3
    Hassan Guest

    Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????


    huh ???

    i have one xml doc and one xslt doc

    <names>

    <name>
    Bill
    <lastname>
    Smith
    <age>3</age>
    </lastname>
    </name>

    <name>
    Joe
    <lastname>
    Dirt
    <age>111</age>
    </lastname>
    </name>

    </names>

    when i transform im adding data to each name element and i want the text
    of each name element and its children to go into a separate html file.

    for instance the first name element goes into firstname.html after the transformation.
    and the second name element goes into secondname.html after the transformation.

    how do i do that ??
    "Russell Jones" <arj1@northstate.net> wrote:
    >You can either supply different source XML documents to the XSLT template

    or
    >you can extract different items from a single XML document by passing
    >different document fragments to the template or by setting parameter values
    >to change the way the template processes the data.
    >
    >HTH,
    >Russell Jones
    >Sr. Web Development Editor,
    >DevX.com
    >
    >"hassan" <mirzahassan@hotmail.com> wrote in message
    >news:3b2592b1$1@news.devx.com...
    >>
    >> using the microsoft parser 3 how can i output multiple html file from

    an
    >xslt
    >> file ?

    >
    >



  4. #4
    Russell Jones Guest

    Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????

    You can use the msxml command-line processor to write result trees to disk.
    Use an XSLT file that outputs the html you want for each node. Call the
    processor once for each <name> node. Alternatively, you can write a script
    or program that loops through the <name> nodes calling the
    TransformNodeToObject method. Store the result in a DOMDocument object and
    use the Save method to save the document to disk.


    "Hassan" <mirzahassan@hotmail.com> wrote in message
    news:3b2629e5$1@news.devx.com...
    >
    > huh ???
    >
    > i have one xml doc and one xslt doc
    >
    > <names>
    >
    > <name>
    > Bill
    > <lastname>
    > Smith
    > <age>3</age>
    > </lastname>
    > </name>
    >
    > <name>
    > Joe
    > <lastname>
    > Dirt
    > <age>111</age>
    > </lastname>
    > </name>
    >
    > </names>
    >
    > when i transform im adding data to each name element and i want the text
    > of each name element and its children to go into a separate html file.
    >
    > for instance the first name element goes into firstname.html after the

    transformation.
    > and the second name element goes into secondname.html after the

    transformation.
    >
    > how do i do that ??
    > "Russell Jones" <arj1@northstate.net> wrote:
    > >You can either supply different source XML documents to the XSLT template

    > or
    > >you can extract different items from a single XML document by passing
    > >different document fragments to the template or by setting parameter

    values
    > >to change the way the template processes the data.
    > >
    > >HTH,
    > >Russell Jones
    > >Sr. Web Development Editor,
    > >DevX.com
    > >
    > >"hassan" <mirzahassan@hotmail.com> wrote in message
    > >news:3b2592b1$1@news.devx.com...
    > >>
    > >> using the microsoft parser 3 how can i output multiple html file from

    > an
    > >xslt
    > >> file ?

    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center