The document() function will almost certainly cache the result, so if you call it twice, supplying the same URI, then the document will not be re-read and re-parsed on the second and subsequent occasions. Your custom function is not maintaining a similar cache.
To pass parameters to an XSLT building block, you simply need to add the parameters to the package, as described in the documentation.
Quoting the example from that documentation page: if your XSLT expects a parameter myParam like this:
<xsl:param name="myParam">My Default Value</xsl:param>
... then you can set this value in an earlier ...
To have a clear understanding, I want to add some points to it
For all the Templating related (XSLT Mediator, Templating DLL, Dreamweaver Extension), we need to remember that
Register templating DLL into GAC on all
Restart Tridion Content Manager COM+ server
Restart all the Tridion Publishers
Most of the clients uses more ...
The XSLT mediator was created for SDL Tridion R5.3 up until 2011, since in SDL Tridion 2013, a new Template Building Block type was added, the XSLT template.
That was done by adding the XSLT mediator to the release basically, rendering the mentioned extension void. So you should NOT try to install the XSLT mediator extension, just use the built in one ...
It is clearly given here that http://msdn.microsoft.com/en-us/library/ms163430(v=vs.110).aspx.
This method does not support the xsl:strip-space element. If your
compiled style sheet included the xsl:strip-space element, you must
use the Transform overload which takes an XmlReader as the input
Seems like a tricky one to debug. In general, performance issues where "nothing has changed" is related to the database performance, and this can only be optimized by looking at database traces and making sure regular maintenance is executed on the DB - sp_updatestats on SQL Server and the scripts we ship for DB maintenance for Oracle.
Usually we find out ...
I am guessing that it is because you are using this line
This is forcing the system do load additional data which is not included in the default XML. I am not 100% sure, but I imagine when you call this flag, instead of loading just the Component object, it loads all of the Keyword objects in order to get the xlink:...
White-space handling is tricky at the best of times in XSLT. In this case, it's not clear what you are actually trying to achieve, but maybe strip-space isn't what you need anyway.
I'd suggest that you check out this question on Stack Overflow. The answers by Dimitre Novachev and Michael Kay are both instructive (as are pretty much all the answers given by ...
How to Configure XSLT Mediator?
To enable the Mediator the Tridion CM configuration requires a small modification:
The file in the folder [InstallationFolder]\Config or %TRIDION_HOME%\Config is called Tridion.ContentManager.config
Preferably create a backup of this file and then open it in your preferred text editor and navigate to the <tridion....
The ideal location for this dll would be "C:\Program Files (x86)\Tridion\bin" So add this dll in this location.
In the tridioncontentmanagerconfig file add the below line in the mediators section
"<mediator matchMIMEType="text/xml" type="Tridion.Extensions.Mediators.XsltMediator" assemblyPath="C:\Program Files (x86)\Tridion\bin\Tridion.Extensions....