Subject:xslt include Author:P S Date:23 Jan 2006 03:49 PM
hi
I am trying to call a template from an include xsl file which is in the dir one level above the original xslt dir. But it keeps giving error that "There is no named template defined with the name"
But if i copy the include stylesheet into the same dir where the calling stylesheet is it works fine.
I have folder called c:\proj\xslt and c:\proj\COMMON.
Parent xslt is under xslt folder. and inlcude xslt is in common folder.
Subject:xslt include Author:Tony Lavinio Date:23 Jan 2006 04:17 PM
Your common and xslt directories are peers most likely, since otherwise
you'd probably get an error that the common stylesheet couldn't be
loaded, as opposed to not being able to be found. So, without seeing what
you have, here are a few things to try.
1) Try using a different XSLT processor (through the Scenarios tabs).
See if the error is still present.
2) Put the common XSLT in the same directory (not forever, just for
testing). See if the include works then.
3) Does the common XSLT work in other cases? Could it be missing the
XSLT namespace declaration or xsl:stylesheet element at the top?
Let us know what you discover for each test, and we'll see where that
brings us.
1) Try using a different XSLT processor (through the Scenarios tabs).
See if the error is still present.
Ans: Still didn't work.
2) Put the common XSLT in the same directory (not forever, just for
testing). See if the include works then.
Ans: It did work.
3) Does the common XSLT work in other cases? Could it be missing the
XSLT namespace declaration or xsl:stylesheet element at the top?
Ans: its not missing namespace declaration or xsl:stylesheet element.
Subject:xslt include Author:P S Date:24 Jan 2006 11:20 AM
hi
found my bug. Thanks for your help. I had two copies of the xslt, one was missing one letter at the end which didn't have paging template and i was refering to that one. Thanks