473,385 Members | 1,582 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,385 software developers and data experts.

Applying My XSL to a Public XML URL

How do I apply my own template to an XML file that is hosted on another
server? The only way I see to apply a template is to have the XML
response include the instruction for loading the specific XSL, but I can't
control the XML file. I basically want to apply my own template to a
dynamic XML file that somebody else controls.
Jul 20 '05 #1
5 1495
Brad wrote:
How do I apply my own template to an XML file that is hosted on
another
server? The only way I see to apply a template is to have the XML
response include the instruction for loading the specific XSL, but I
can't
control the XML file. I basically want to apply my own template to a
dynamic XML file that somebody else controls.


Can't you just supply the name of the xsl file directly to your xslt
processor?

Jul 20 '05 #2
In article <c8*************@news.t-online.com>, ra******@t-online.de
said...
Brad wrote:
How do I apply my own template to an XML file that is hosted on
another
server? The only way I see to apply a template is to have the XML
response include the instruction for loading the specific XSL, but I
can't
control the XML file. I basically want to apply my own template to a
dynamic XML file that somebody else controls.


Can't you just supply the name of the xsl file directly to your xslt
processor?


Is there a way to use an XSLT processor by default? I'd like to be able
to double click on a local file and have it transform the remote XML and
display it.
Jul 20 '05 #3
You could create an other xml

xml

<file>
<remotexml>path to public xml</remotexml>
</file>

and apply the xsl to this xml file and load the public xml using the
document() function.

"Brad" <me@privacy.net> wrote in message
news:MPG.1b148d91c2ff160c98bcd9@news...
In article <c8*************@news.t-online.com>, ra******@t-online.de
said...
Brad wrote:
How do I apply my own template to an XML file that is hosted on
another
server? The only way I see to apply a template is to have the XML
response include the instruction for loading the specific XSL, but I
can't
control the XML file. I basically want to apply my own template to a
dynamic XML file that somebody else controls.


Can't you just supply the name of the xsl file directly to your xslt
processor?


Is there a way to use an XSLT processor by default? I'd like to be able
to double click on a local file and have it transform the remote XML and
display it.

Jul 20 '05 #4
Can you give me more detail on how this is done?

In article <40**********@news.athenanews.com>, kellywhite@grayson-
technology.com said...
You could create an other xml

xml

<file>
<remotexml>path to public xml</remotexml>
</file>

and apply the xsl to this xml file and load the public xml using the
document() function.

"Brad" <me@privacy.net> wrote in message
news:MPG.1b148d91c2ff160c98bcd9@news...
In article <c8*************@news.t-online.com>, ra******@t-online.de
said...
Brad wrote:

> How do I apply my own template to an XML file that is hosted on
> another
> server? The only way I see to apply a template is to have the XML
> response include the instruction for loading the specific XSL, but I
> can't
> control the XML file. I basically want to apply my own template to a
> dynamic XML file that somebody else controls.

Can't you just supply the name of the xsl file directly to your xslt
processor?


Is there a way to use an XSLT processor by default? I'd like to be able
to double click on a local file and have it transform the remote XML and
display it.

Jul 20 '05 #5
Kelly White wrote:
You could create an other xml

xml

<file>
<remotexml>path to public xml</remotexml>
</file>

and apply the xsl to this xml file and load the public xml using the
document() function.


I didn't find any document() XPath function.
Another option might be to use XInclude, assuming your xslt processor
supports it:

<file xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="path to public xml" />
</file>

Jul 20 '05 #6

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

Similar topics

1
by: Neil Zanella | last post by:
Hello, I would like to use CSS to apply a width of 100% to all <input> elements, but to only those that have an type attribute set to "text", without affecting check boxes, radio buttons, etc......
1
by: florian.boldt | last post by:
Hi Folks, one of our developers uses a statement with a where clause which usually does not match to any rows. In case of one or more rows found she wrote a an expression in the select clause...
8
by: KathyB | last post by:
Please tell me where I'm going wrong on the marked lines***. The code is fine to that point. I've only used this code to populate dropdownlists using databind to the control. Here, I just need to...
29
by: Richard Lionheart | last post by:
Hi All, I've taken the advice of a few people and managed to cobble together an HTML 4.01 Strict-compliant document (according to the W3C Validation Service), but the way I try to pass a...
2
by: Eric Marthinsen | last post by:
Hello- I need to run some code on every one of my ASP.NET pages (1.x). The code basically registers some client script blocks. I've been trying to find a way to do this that doesn't involve me...
1
by: cesco | last post by:
Hi, I have a map container where the key_type is a pointer to a class and the value_type is an intenger. I'd like to apply the STL algorithm partial_sum to the value_type field of that map but I...
6
by: Orgun | last post by:
Hi, I sent this message to the moderated c++ group too but it is waiting for moderator approval and I wanted to send here too. I am new to Design Patterns. I want to write a simple...
0
nomad
by: nomad | last post by:
I made a simple GUI program in which I want to place a .gif into a button. I did this but the .gif does not show up. The load.gif is in the same package (chapter 10) as the project. If I take these...
6
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.