Re: Sitemap independence from the files it points to
Albert Lash <alby-8/[email protected]> Fri, 3 Jun 2005 14:42:23 -0400 (EDT)
| Newsgroups | gmane.comp.lib.nexista.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, it works fine if you use a "translation" file to simply get imported by another xsl file. This file contains nothing but the following: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="includeme.xsl"/> </xsl:stylesheet> Then includeme.xsl contains the entity: <?xml version="1.0"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY path "/Users/albertlash/Sites/savoncore2/applications/"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="&path;accounting/xsl/accounts.xsl"/> <xsl:template match="/"> Hello, I am a test template. &barf; <xsl:call-template name="content"/> </xsl:template> </xsl:stylesheet> This works fine. I assume that something with the Nx processor of the sitemap referenced xsl file messes with the DOCTYPE declaration. I guess I'll work with this for now, and if we figure out how to get entities working in xsl files directly accessed by sitemap, then test.xsl and includeme.xsl go to the wayside. Al On Fri, 3 Jun 2005, Albert Lash wrote: > Its working in sitemap.xml, but for some reason I cannot get an entity to > work in a sitemap referenced xsl file, only an xsl file that is then > imported by that xsl file. > > form.xsl > page.xsl > > sitemap.xml calls form.xsl, which includes form.xsl. I can get the entity > to show up in page, but not form. ???? > > On Fri, 3 Jun 2005, Joshua wrote: > > > That is possibly planned. Something like the <base href=""> tag of html. > > so map:base perhaps. And you can either hardcode a path there or use php > > streams. > > > > But i'd like to hear about your dtd/doctype venture to see if you aregetting > > around that. I've been meaning to explore but haven't got around to it > > > > J > > On Thursday 02 June 2005 2:55 pm, Albert Lash wrote: > > > Hi Joshua, > > > > > > I'm trying to make the sitemmap independent from the files it references, > > > by using a variable or constant specifier. Kind of like NX_XSL path > > > constant defined in the index.php file. > > > > > > This would then be used in the builders to prepend the path. If you want > > > to use relative paths, fine, just leave it blank. Otherwise, the constant > > > will allow you to use absolute paths, and move the directory that contains > > > all the stuff that sitemap references. I've already had to update all the > > > paths several times, and now that the sitemaps can get split up, it will > > > get harder. > > > > > > Just thought I'd check in with you to see if you have thought of this > > > before. I was thinking it might make sense to have a sitemap variable or > > > something, but that didn't sit right with me. > > > > > > Alby > > >