Hi, Hendy,
Here's how you include one xslt file in another...
1. Create an xslt file that has named templates that you want to re-use (this is kind of like an include file of function in other languages). Save the xslt file in umbraco just like any other. Let's call it "stripHTML.xslt" for this example.
2. Include the xslt file in other xslt files by using the following statement:
Code:<xsl:include href="stripHTML.xslt"/>
3. Call the templates in the other included xslt in the same way you would if they were in the current xslt file itself (<xsl:call-template name="foobar">)
That's it!
Now, to your specific issue of stripping HTML... umbraco provides a function for that called umbraco.library:StripHtml(). You can find all the additional functions available to your xslt files by:
1. In the umbraco xslt editor, click the "insert value-of" icon on the toolbar.
2. In the dialog that appears, click the "get extensions" button.
3. In the dialog that appears, select "umbraco.library" from the drop-down list, then you'll be able to select the various functions available.
cheers,
doug.
MVP 2007-2009 - Official Umbraco Trainer for North America -
Percipient Studios