comp.text.xml
[Top] [All Lists]

Re: link xsl to xml file

Subject: Re: link xsl to xml file
From: Stanimir Stamenkov
Date: Mon, 28 Jul 2008 19:31:32 +0300
Newsgroups: comp.text.xml


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]                                 www.w3.org/TR/xinclude/">http://www.w3.org/TR/xinclude/

--
Stanimir

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy