document(foo.xml, .) will work relative to the source document
document(foo.xml, document('') ) will work relative to the XSLT in question
(I might have that backwards)
simon
On Saturday, June 14, 2003, at 08:27 AM, Fabian Sturm wrote:
Hello!
I have the problem that I want to create a navigation bar for my webpages with xml/xslt and axkit. The structure of my documents/directories is like this:
/ index.xml imprint.xml projects (folder) publications (folder) privat (folder) (and these files) navbar.xml webpage.xsl style_body.xsl style_navbar.xsl
/projects/ index.xml navbar.xml projectA (folder) projectB (folder)
/projects/projectA/ index.xml navbar.xml
Depending on what website is displayed I want to show a different navigation bar. If it is the root index page it should look like:
Home Imprint Projects Publications Privat
And if I am displaying projects/index.xml it should look like:
Home Imprint Projects -ProjectA -ProjectB Publications Privat
How can I do that? the main stylesheet is from / and I think I don't have a way to know if I came from /index.html or /Projects/index.html. If I would I probaly could travers the path down and add each of the navbar.xml files with document or import on the way.
Any suggestions how to do that, efficient and without having to specify the full path for each page.
Thanks a lot, Fabian <mime-attachment>
-- anti-spam: do not post this address publicly www.simonwoodside.com -- 99% Devil, 1% Angel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
