473,406 Members | 2,769 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.

link xsl to xml file

I know u can link an xml file to an xsl file by putting a stylesheet
declaration in the xml file.

Is there a way to do the opposite ?, is there a declaration I can put in
the xsl file that means I can browse to it as if I was browsing the xml
file with a stylesheet declaration ?.

any help appreciated.

--
Eps
Jul 27 '08 #1
3 3895
andy wrote:
I know u can link an xml file to an xsl file by putting a stylesheet
declaration in the xml file.

Is there a way to do the opposite ?, is there a declaration I can put in
the xsl file that means I can browse to it as if I was browsing the xml
file with a stylesheet declaration ?.
I don't think so.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 27 '08 #2
andy wrote:
I know u can link an xml file to an xsl file by putting a stylesheet
declaration in the xml file.

Is there a way to do the opposite ?, is there a declaration I can put in
the xsl file that means I can browse to it as if I was browsing the xml
file with a stylesheet declaration ?.
When you say "browse to it" do you mean with a web browser, retrieving
via HTTP, or with a file browser (aka directory manager like My
Computer) which just looks at files on a local or shared disk?

If you are using XSLT2, it might be possible to open the stylesheet and
have a document() XPath call at the top level which would open the
required document.

It's also possible to simulate this kind of action using an XML server
like Cocoon.

I'm interested to know why you want to do it this way, though.

///Peter
Jul 27 '08 #3
Sun, 27 Jul 2008 10:28:08 +0100, /andy/:
I know u can link an xml file to an xsl file by putting a stylesheet
declaration in the xml file.

Is there a way to do the opposite ?, is there a declaration I can put in
the xsl file that means I can browse to it as if I was browsing the xml
file with a stylesheet declaration ?.
I thnink it should be possible using XInclude [1]:

-----proxy.xml
<?xml version="1.0"?>
<?xml-stylesheet href="sheet.xsl" type="application/xml"?>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="original.xml"/>
-----proxy.xml--

But I don't think browsers support it.

[1] http://www.w3.org/TR/xinclude/

--
Stanimir
Jul 28 '08 #4

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

Similar topics

1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
2
by: JenHu | last post by:
hi, I have a datagrid in my asp.net application, I am using vb.net language. I want to have my last column as a link column, link to text file. The link path is "c:\Temp\" & F_File_Name, which...
6
by: Ozz | last post by:
Hi there, I have a link on my web page. When clicked, opens up a pdf file that is stored on my server. Every file is specific to a user's user name and I don't want users to see each other's...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
1
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
8
by: Bern McCarty | last post by:
We have a large mixed dll that I can never seem to get to link incrementally. Below is the console output. For simplicity I've eliminated some stuff that we normally do when we really link this...
11
by: mosscliffe | last post by:
I am trying to create a link to a file, which I can then use in an HTML page. The system is Linux on a hosted web service, running python 2.3. Other than that I have no knowledge of the system....
0
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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
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...

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.