473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 1447
ma***********@gmail.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
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...
5
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...
3
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"...
3
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
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...
16
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...
5
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...
11
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...
13
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.