473,587 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reference dummy xslt in xml

Hi,
I have a service running on my machine that generates continuous stats
in xml.
I want to constantly reference an xslt file (using <?xml-stylesheet
type="text/xsl" href="Test3.xsl "?>) within the xml that does not change
the formatting of the xml in any way when i access the xml in a
browser. This means that the xsl file will be a "dummy" file until I
import another xslt into the "dummy" file using <xsl:import
href="Test2.xsl " />.
Is there a way that I can do this in a constant manner?

Thanks

Jan 27 '06 #1
1 1455
ma***********@g mail.com wrote:
Hi,
I have a service running on my machine that generates continuous stats
in xml.
I want to constantly reference an xslt file (using <?xml-stylesheet
type="text/xsl" href="Test3.xsl "?>) within the xml that does not change
the formatting of the xml in any way when i access the xml in a
browser. This means that the xsl file will be a "dummy" file until I
import another xslt into the "dummy" file using <xsl:import
href="Test2.xsl " />.
Is there a way that I can do this in a constant manner?

Thanks

Hi,

I guess you need to write Test3.xsl as a (general) identity transform,
and then when time comes, use include, not import to pull in another
stylesheet.

The reason is: The template rules in Test3 will override any rules in
stylesheets imported from Test3. Priorities don't matter. But when using
include, the including and the included module will be merged into one,
and in the included one, you can make priorities a little higer than in
Test3, for override.

Soren
Jan 27 '06 #2

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

Similar topics

2
3728
by: Alexander Stippler | last post by:
Hi, I've got a question concerning iterators and STL. Why does the compiler warn, that function dummy in the following example returns a reference to a local temporary? In my understanding, it is not temporary. It's an entry in a hash_map and therefore not temporary. Where am I wrong? How do I get the desired functionality? And by the way:...
5
2258
by: Brett conklin | last post by:
I would like to not use the google groups as a crutch in my XSLT journey. What is the best xslt reference out there? Is it a book? Is it a web site? I am finding that I can come up with nearly 2-3 questions a day about XSLT. I would like to RTFM instead of bugging you guys. Thanks Brett bconklin@sentius.com
3
12812
by: allard poldermans | last post by:
How can I make a reference to an external CSS or JS file that is relative to the XSL stylesheet, and not relative to the XML data? If you simply put : <link rel="stylesheet" type="text/css" href="ui/demo.css" ></link> in your XSL file, this link will always be relative to the location where the XML file is. For example, suppose I have...
3
1128
by: John Black | last post by:
Hi, In the following code, void func(int b, int h){ int dummy; int& i1 = dummy; int& i2 = dummy; if ( <some condition>){ i1 = b;
10
2257
by: Tony Johansson | last post by:
Hello Experts!! This class template and main works perfectly fine. I have this class template called Handle that has a pointer declared as T* body; As you can see I have a reference counter in the class template so I know how many references I have to the body. In my case it's the Integer wrapper class which is the body. This template...
16
14104
by: Ekim | last post by:
hello, I'm allocating a byte-Array in C# with byte byteArray = new byte; Now I want to pass this byte-Array to a managed C++-function by reference, so that I'm able to change the content of the byteArray and afterwards see the changes in C#. (if you wanna know more details: the goal is to write the content of an existing char-array in c++...
5
1426
by: raghu | last post by:
Hi All, I am a new user of Python and am having a bit of problem understanding the Reference counting and memory leakage issues. Requesting help from experienced users.... I wrote the following simple program.
11
1904
by: Brian | last post by:
Dear Programmers, I have a class with a pointer to an array. In the destructor, I just freed this pointer. A problem happens if I define a reference to a vector of this kind of class. The destruction of the assigned memory seems to call the class destructor more than once. I don't know the reason or whether I used the vector class...
13
2305
by: jtric | last post by:
Very new to XML/XSL, so please forgive me if this is an incredibly simple question. I've been pulling my hair out over this for several days now. I'm working on an internal application that takes the output from a custom Excel spreadsheet, and creates a Final Cut Pro sequence in XML. Due to the way Excel handles nested repeating elements, I...
0
7849
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...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
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...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
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...

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.