Subject:xsl:include with external files Author:Erich Manser Date:21 Jan 2000 12:43 PM
Hi everybody,
since there is no MAC stylus version I've got the following problem.
I'm trying to divide my XSL file into several different XSL files, which get included by one master XSL file.
Some of these XSL files will remain in eXcelon server and others not. Because our Design Crew is working on MAC. But it seems like there is no possibility to create an tag like this:
Subject:xsl:include with external files Author:(Deleted User) Date:21 Jan 2000 01:15 PM
On 1/21/00 12:43:37 PM, ekm wrote:
><xsl:include href="http://server.com/project/include.xsl"/>
Stylus and eXcelon do not currently support using xsl:include with an http URL. That feature will be part of a future version of Stylus (and possibly eXcelon). In the mean time, if you have a file server accessible by both your Macs and Stylus, you can save the stylesheet there.
Subject:xsl:include with external files Author:Erich Manser Date:21 Jan 2000 02:14 PM
There is no problem to save the files on a server which both can reach.
But how will the guy's on the mac be able to change the XSL files and get them back into eXcelon server so they can see there own changes? Without changing the building to get to the a pc where they are able to open an eXcelon explorer or manager to import the changed files to server.
Subject:xsl:include with external files Author:(Deleted User) Date:21 Jan 2000 03:17 PM
Aside from running the eXcelon Explorer inside a Windows emulator, there is no Macintosh client. However, you could write a simple ASP web page on the eXcelon server that accepts a path or file uploads and then stores the data into eXcelon. There are examples that ship with eXcelon demonstrating how to use the COM client API from ASP.
Subject:xsl:include with external files Author:Peter Ciuffetti Date:28 Jun 2000 10:45 AM
One of the posts in this sequence seems to imply that xsl:include in Stylus works with stylesheets stored on a file system. Yet when I try xsl:include href="\stylesheets\file.xsl" or href="/stylesheets/file.xsl" Stylus does not include the file.
The only form that I could get to work was saving the stylesheet in eXcelon and using
href="xmlstore:/stylesheets/file.xsl"
I'd like my Stylesheets to be compatible with other xslt processors yet I can't think of an include construct compatible with Stylus that will also work outside of Stylus.
If Stylus supported includes relative to the base URI, or if it supported file: or http: then I could manage.
I tried using a parameter e.g, href="{$baseURI}/stylesheets/file.xsl" but top-level elements are not allowed to have attribute value templates.
Subject:xsl:include with external files Author:Omri Traub Date:28 Jun 2000 12:22 PM
Hi,
href="/foo/bar.xsl" works fine for me! You can also give an absolute path href="d:\foo\bar.xsl". Can you send some example files? What version of Stylus are you using?
Subject:xsl:include with external files Author:Peter Ciuffetti Date:29 Jun 2000 10:33 AM
Hi,
I fiddled with it a bit more and here's what I discovered:
When I reported the error, I was trying to import stylesheets from the file system into a stylesheet that I had stored in the eXcelon server. e.g.
xln::StyleSheets/foo.xsl
which tried to include href="d:\bar.xsl"
I found that if I exported the stylesheet to the file system and asked Stylus to open that one (D:\foo.xsl) then it permitted the include.
I also found that I could not include eXcelon files into a stylesheet that is stored on the file system.
So, if Stylus opens a stylesheet with the file tab, then xsl:include only permits includes from the file system,
If Stylus opens a stylesheet with the Excelon tab, then xsl:include only permits includes from eXcelon.
I also tried the URL tab. If I open the main stylesheet via the Apache module, e.g. http://localhost/excelon/SyleSheets/foo.xsl, then I can xsl:include href="http://localhost/excelon/StyleSheets/bar.xsl" but not href="StyleSheets:/bar.xsl"
I think I can work around this by always using the Apache module as an access method when editing with Stylus. Then other XSLT processors can use the same mechanism to get the includes...
Subject:xsl:include with external files Author:(Deleted User) Date:29 Jun 2000 11:24 AM
There are ways to get Stylus to import eXcelon stylesheets from a stylesheet in the filesystem and vice versa, but you're better off not. eXcelon's XSLT processor can only include and import stylesheets from within its database.
If it's helpful, Stylus does support file://somewhere and xln:server:port:store:/path/file.xsl or xln:server:store:/path/file.xsl for DCOM.