multiple xml stylesheets

Discussion in 'XML' started by Kevin, Mar 5, 2008.

  1. Kevin

    Kevin Guest

    I would like to change the naming convention for my stylesheets so
    they include the version number of the release. Because the xml files
    that are created by the application may be read and created between
    multiple versions of the application (those that have the latest
    updates, and those that do not), there is a need to either use the
    latest xsl stylesheet, or use the previous xsl (generic version)
    stylesheet.

    Is there a way to use the latest style sheet if it exists, and if not,
    then use the older generic stylesheet?

    I know that I can specify multiple stylesheets but if the new one does
    not exist in this case, the xml does not display in the browser.

    <?xml-stylesheet type='text/xsl' href='new_style_sheet_Version1.xsl' ?
    >

    <?xml-stylesheet type='text/xsl' href='generic.xsl' ?>
     
    Kevin, Mar 5, 2008
    #1
    1. Advertisements

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. Adrian

    Changing stylesheets

    Adrian, Oct 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    422
    Esteban Felipe
    Oct 27, 2003
  2. Dave Higgins
    Replies:
    12
    Views:
    1,186
    Nick Howes
    Nov 22, 2003
  3. steve
    Replies:
    4
    Views:
    1,264
    Baldo
    Dec 3, 2003
  4. Michael Lund

    newbie: XML and stylesheets

    Michael Lund, Dec 24, 2004, in forum: XML
    Replies:
    2
    Views:
    441
    Michael Lund
    Dec 25, 2004
  5. jim
    Replies:
    1
    Views:
    865
    Wizfrog
    Jul 24, 2007
  6. Kevin

    Multiple stylesheets

    Kevin, Mar 5, 2008, in forum: XML
    Replies:
    0
    Views:
    466
    Kevin
    Mar 5, 2008
  7. Erik Wasser
    Replies:
    5
    Views:
    816
    Peter J. Holzer
    Mar 5, 2006
  8. Tim W
    Replies:
    4
    Views:
    522
    Tim W
    Dec 14, 2012
Loading...