XSL: xform one XML file into multiple HTML files?

Discussion in 'XML' started by Richard R., Nov 8, 2004.

  1. Richard R.

    Richard R. Guest

    Given one XML file, is it possible in XSL to transform it into multiple HTML
    files? I have a file I'd like to transform into an index page with links to
    per-category pages. I haven't seen anything in the w3.org pages hinting at
    this possibility, but maybe one of y'all knows a trick....

    I expect that I'll have to use multiple XSL stylesheets and corral them with
    a Perl script.
    Richard R., Nov 8, 2004
    #1
    1. Advertising

  2. Richard R. wrote:

    > Given one XML file, is it possible in XSL to transform it into multiple HTML
    > files? I have a file I'd like to transform into an index page with links to
    > per-category pages. I haven't seen anything in the w3.org pages hinting at
    > this possibility, but maybe one of y'all knows a trick....


    With XSLT 1.0 there is exactly one result document (well one result tree
    that can then be serialized into one result document) but processors
    like Saxon 6 (see http://saxon.sourceforge.net/) and others implement
    extensions that allow you to create additional result trees/documents.
    See
    http://saxon.sourceforge.net/saxon6.5.3/xsl-elements.html#xsl:document
    for Saxon's extension or check your processor's documentation.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Nov 8, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    952
    M.E.Farmer
    Feb 13, 2005
  2. xform novice help

    , Dec 11, 2006, in forum: XML
    Replies:
    1
    Views:
    404
    Martin Honnen
    Dec 12, 2006
  3. idiotprogrammer
    Replies:
    4
    Views:
    1,136
    Joseph Kesselman
    Mar 5, 2007
  4. Madjid Nasiri

    XForm and WebService

    Madjid Nasiri, Oct 20, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    117
    Madjid Nasiri
    Oct 20, 2004
  5. Jorge

    Numerical sort (Schwartzian xform)

    Jorge, Sep 6, 2006, in forum: Perl Misc
    Replies:
    16
    Views:
    177
    Tad McClellan
    Sep 8, 2006
Loading...

Share This Page