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

    Changing stylesheets

    Adrian, Oct 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    318
    Esteban Felipe
    Oct 27, 2003
  2. Dave Higgins
    Replies:
    12
    Views:
    980
    Nick Howes
    Nov 22, 2003
  3. steve
    Replies:
    4
    Views:
    1,035
    Baldo
    Dec 3, 2003
  4. Kevin

    multiple xml stylesheets

    Kevin, Mar 5, 2008, in forum: XML
    Replies:
    0
    Views:
    387
    Kevin
    Mar 5, 2008
  5. Tim W
    Replies:
    4
    Views:
    364
    Tim W
    Dec 14, 2012
Loading...

Share This Page