Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Reference dummy xslt in xml

Reply
Thread Tools

Reference dummy xslt in xml

 
 
markjcostello@gmail.com
Guest
Posts: n/a
 
      01-27-2006
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

 
Reply With Quote
 
 
 
 
Soren Kuula
Guest
Posts: n/a
 
      01-27-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to insert an XML-element by XSLT-converting from one XML-file into another XML-file jkflens XML 2 05-30-2006 09:41 AM
Including XSLT/XML document within a XSLT document dar_imiro@hotmail.com XML 4 12-13-2005 02:26 AM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM
Iframe question -- need dummy css and js reference to make the page work. Jiong Feng Javascript 0 01-11-2004 09:22 PM
web.xml in servlet deployment - how to dummy out DOCTYPE Alexandr Molochnikov Java 5 08-29-2003 05:34 PM



Advertisments