File paths with XSLT includes

Posted by Andrew Parisi on Stack Overflow See other posts from Stack Overflow or by Andrew Parisi
Published on 2010-06-10T17:38:17Z Indexed on 2010/06/10 17:42 UTC
Read the original article Hit count: 250

Filed under:
|
|

Hi again everyone.

I'm working on a website with a large number of pages, and each one has this in it: <xsl:include href="team-menu.xsl" />

This xsl file is stored in the root directory.

Essentially including my "team menu" on each page. My problem is when I include this on nested pages, e.g. "/teammembers/smith.xsl", the links in the menu are broken because they refer to pages that aren't in the same directory as the page i'm viewing.

This is probably really easy, but I just don't know how to fix it. Is there a way to tell the XSL the root directory and/or set some sort of global directory? Thanks for your help!

© Stack Overflow or respective owner

Related posts about html

Related posts about Xml