473,836 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple xml stylesheets

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.x sl' ?>
Mar 5 '08 #1
0 1460

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3794
by: steve | last post by:
I'm new to XML, so pardon the stupid question. I've looked thru several books with not luck. All I want to do is associate one xml file with multiple xsl stylesheets. For example, if the user clicks on Button A, I want to use xsl stylesheeet A to display the xml data in a browser. If he clicks button B, then I want to use stylesheet B. I would think that this would be a very common thing to do, but maybe i'm missing something big. ...
1
4150
by: Steve | last post by:
I'm sure this question has been asked before, but I couldn't seem to get the right combination of words to get a hit. I'm looking to do one of two things... 1) Take a list of items, and have them display in a table format, but without any predetermined number of columns. Meaning that somehow using CSS tell the browser to determine the amount of screen space available, and then adjust the list items into an appropriate number of...
14
2595
by: Jacqui or (maybe) Pete | last post by:
Having just answered a question about multiple linked stylesheets, I thought I'd have a look at browser support. There's a quick test page here: http://www.porjes.com/ms/ I wrote it according to my understanding of: http://www.w3.org/TR/html401/present/styles.html#h-14.3.2
4
5148
by: Carolyn Marenger | last post by:
Hey everyone, I am looking for your thoughts and opinions. Is it preferable to have one css file containing all the style information or break it up into multiple imported files for different types of formatting. For example, one file for page layout related items and another for text formattion? I have seen different combinations on different pages, and am wondering which people find is easier to maintain. Being from a coding...
5
10014
by: Don G | last post by:
Is it possible to link multiple stylesheets to a single web page? I have an overall stylesheet for my entire site, but there are a few pages with a minor differences. I originally had these as inline styles, but I would like to move them to external stylesheets, if possible. I did some Google searches, and I found links that seemed to suggest that multiple stylesheets could be linked to a single page, but didn't give the details as how...
3
2048
by: spolsky | last post by:
hi, it is possible to apply multiple styles as shown in the following example. <STYLE TYPE="text/css"><!-- BODY { background-color:salmon; } P { margin-left:20px; } .clsCode { font-family:"Comic Sans MS"; font-size:10pt; color:navy;}
8
1498
by: mscertified | last post by:
I have two stylesheet files, one is a standard file and one a custon file. They have no classnames in common. How do I specify that my page use both stylesheets? I tried Help and as usual could find no mention of the subject.
0
1594
by: Kevin | last post by:
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...
1
1560
by: kevino | last post by:
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...
0
9818
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10843
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10589
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4015
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3112
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.