<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Using Includes in report XSLT (Thread)</title><description> There are several XSLT templates we are re-using across documents - take for example the format-date template from the default Spira doc sections. We now also have sections that (for the Word export) add house style stuff like headers, company logos, page numbering, etc. This could all be placed in separate templates, but this still means the XSLT code needs to be copied for every doc template.  Wed like our xsl files to reference the shared generic templates instead.  Is it possible to use the xsl include feature and if so, what is the base folder on the server where the parser will look for these files while generating the reports (using absolute paths would be possible too of course) ?  We would like to build up a little library of re-used xslt template snippets to get rid of the duplication. Also, this would make adapting our house style a LOT easier.  Or is there some other solution to this than xslt includes? Are there examples available for this?    </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/reports/2418.aspx</link><item><guid isPermaLink="false">threadId=2418</guid><author>D L (dennis.lardenoye@pie.nl)</author><title>Using Includes in report XSLT</title><description> There are several XSLT templates we are re-using across documents - take for example the format-date template from the default Spira doc sections. We now also have sections that (for the Word export) add house style stuff like headers, company logos, page numbering, etc. This could all be placed in separate templates, but this still means the XSLT code needs to be copied for every doc template.  Wed like our xsl files to reference the shared generic templates instead.  Is it possible to use the xsl include feature and if so, what is the base folder on the server where the parser will look for these files while generating the reports (using absolute paths would be possible too of course) ?  We would like to build up a little library of re-used xslt template snippets to get rid of the duplication. Also, this would make adapting our house style a LOT easier.  Or is there some other solution to this than xslt includes? Are there examples available for this?    </description><pubDate>Fri, 16 Jul 2021 12:51:39 -0400</pubDate><a10:updated>2024-08-19T23:58:15-04:00</a10:updated><link>/Support/Forum/spirateam/reports/2418.aspx</link></item><item><guid isPermaLink="false">messageId=4039</guid><author>D L (dennis.lardenoye@pie.nl)</author><title>    Update: using include as specified in the XSLT 1.0 standard gives me an XSLT parsing error. Even</title><description>    Update: using include as specified in the XSLT 1.0 standard gives me an XSLT parsing error. Eventlog tells a bit more (see below) - most relevant thing I pick up is  Resolving of external URIs was probibited . - does this mean including external content is not possible? Im simply using    /&gt;      XSLT compile error. In APPLICATION.Web.Services.Ajax.BackgroundProcessService::LaunchNewProcess_StartProcessing:  Messages:XSLT compile error.  [System.Xml.Xsl.XslLoadException] Resolving of external URIs was prohibited.   [System.Xml.XmlException]  Stack Trace:at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver)at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression&amp; qil)at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)at APPLICATION.Business.ReportManager.CreateCustomReportSection(Int32 userId, Int32 projectId, StringBuilder&amp; reportText, String query, String header, String footer, String template, Boolean isXmlRawFormat, String reportFormatToken, String timezoneId, UpdateBackgroundProcessStatus updateBackgroundProcessStatus, Int32 progress, Nullable`1 releaseId)at APPLICATION.Business.ReportManager.GenerateReport(Int32 userId, Int32 projectId, Int32 projectTemplateId, Int32 reportId, String queryString, String timezoneId, String appRootPath, UpdateBackgroundProcessStatus updateBackgroundProcessStatus)at APPLICATION.Web.Services.Ajax.BackgroundProcessService.LaunchNewProcess_StartProcessing(Object data)    </description><pubDate>Tue, 20 Jul 2021 08:57:52 -0400</pubDate><a10:updated>2021-07-20T08:57:52-04:00</a10:updated><link>/Support/Forum/spirateam/reports/2418.aspx#reply4039</link></item><item><guid isPermaLink="false">messageId=4043</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Hi  We use XslCompiledTransform which by default (for security reasons) does not allow the use of i</title><description> Hi  We use XslCompiledTransform which by default (for security reasons) does not allow the use of included XSLT files.  I will go ahead and log an enhancement request to have an admin setting that allows this.  Regards  David </description><pubDate>Thu, 22 Jul 2021 04:18:32 -0400</pubDate><a10:updated>2021-07-22T04:18:32-04:00</a10:updated><link>/Support/Forum/spirateam/reports/2418.aspx#reply4043</link></item></channel></rss>