Some time ago, there are some help, how to use xsl from subfolders, but I can't find it...
I have problem using xslt files from subfolder. If I use xslt file from subfolder it works fine, but when I add xsl:include or xsl:import directive it cause error on rendered page like this: Error reading XSLT file: \xslt\Basket/Basket.ConfirmationView.xslt It doesn't matter if included file is in same subfolder or in main xslt directory.
Could just be that you include/import at the wrong point in the main file? Both instructions has to be direct children of the <xsl:stylesheet> element, and <xsl:import> must precede any other element in the namespace.
@Christian Palm: This work for me too, but if I try put files into subfolder (basket in my case) it stop working (I also try change href parameter to "basket\include.xslt")
@Christian Steinmeier: Umbraco perform check to path for href, and in main xslt folder it works.
My structure is:
\xslt \basket
when I put both files into basket subfolder it stop working :-(
This works as expected, with the following directory structure:
/xslt /include includefile.xsl
The ONLY issue I seem to have at the moment is that the backend "Developer" section shows the subfolder under XSLT, including an arrow. But as soon as I click the arrow, it disappears. So I can't in any way list the content of ../include. No big deal, I can access via FTP. But I guess this is a tiny bug somewhere in the tree function.
Btw: do anyone know if it is necessary to declare namespaces etc in the included files as well ? I was thinking the could would be included then afterwards, the entire XSLT evaluated.
xslt in subfolder with xsl:include or xsl:import
Some time ago, there are some help, how to use xsl from subfolders, but I can't find it...
I have problem using xslt files from subfolder. If I use xslt file from subfolder it works fine, but when I add xsl:include or xsl:import directive it cause error on rendered page like this: Error reading XSLT file: \xslt\Basket/Basket.ConfirmationView.xslt
It doesn't matter if included file is in same subfolder or in main xslt directory.
Any tip are welcomed.
Petr
Cam you show how the files are located and your include tag
This works for me:
/xslt/Sitemap.xslt
/xslt/Include.xslt
Sitemap.xslt looks like this
Could just be that you include/import at the wrong point in the main file? Both instructions has to be direct children of the <xsl:stylesheet> element, and <xsl:import> must precede any other element in the namespace.
/Chriztian
@Christian Palm: This work for me too, but if I try put files into subfolder (basket in my case) it stop working (I also try change href parameter to "basket\include.xslt")
@Christian Steinmeier: Umbraco perform check to path for href, and in main xslt folder it works.
My structure is:
\xslt
\basket
when I put both files into basket subfolder it stop working :-(
Where is your xslt file living in the folder structure that refences the include.
If you are putting them both in the basket folder the href needs to be as so "include.xslt"
I create another test:
folder structure:
I must use this statement to work after publishing, it cause error when saving xslt, but work when I check skip testing
when I use
It saves ok, but cause Error reading XSLT file: \xslt\subfolder/test.xslt at runtime.
Petr
I just tried the same, where I use
This works as expected, with the following directory structure:
The ONLY issue I seem to have at the moment is that the backend "Developer" section shows the subfolder under XSLT, including an arrow. But as soon as I click the arrow, it disappears. So I can't in any way list the content of ../include. No big deal, I can access via FTP. But I guess this is a tiny bug somewhere in the tree function.
Btw: do anyone know if it is necessary to declare namespaces etc in the included files as well ? I was thinking the could would be included then afterwards, the entire XSLT evaluated.
is working on a reply...