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. 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. Dave Higgins
    Replies:
    12
    Views:
    1,004
    Nick Howes
    Nov 22, 2003
  2. steve
    Replies:
    4
    Views:
    1,060
    Baldo
    Dec 3, 2003
  3. Michael Lund

    newbie: XML and stylesheets

    Michael Lund, Dec 24, 2004, in forum: XML
    Replies:
    2
    Views:
    374
    Michael Lund
    Dec 25, 2004
  4. Kevin

    Multiple stylesheets

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

Share This Page