March 18, 200520 yr In Filemaker 6 using CDML you could have the following code [FMP:Include ...]. Does anyone know what the syntax is, if any, for this with XSLT? If not could you also please tell me. I am experimenting now and would like to know either way. Thanks, Nick
March 18, 200520 yr Author In Filemaker 6 using CDML you could have the following code [FMP:Include ...]. Does anyone know what the syntax is, if any, for this with XSLT? If not could you also please tell me. I am experimenting now and would like to know either way. Thanks, Nick
March 18, 200520 yr Author In Filemaker 6 using CDML you could have the following code [FMP:Include ...]. Does anyone know what the syntax is, if any, for this with XSLT? If not could you also please tell me. I am experimenting now and would like to know either way. Thanks, Nick
March 19, 200520 yr Place <xsl:include href="your file here"/> somewhere after <xsl:stylesheet ...> and before <xsl:template ...> However, this has not the same function as [FMP-Include: ] . In the stylesheet to be included, you have to define a named template (like a subroutine) <xsl:template name="somename"> You call then this template with <xsl:call-template name="somename"/> Martin
March 19, 200520 yr Place <xsl:include href="your file here"/> somewhere after <xsl:stylesheet ...> and before <xsl:template ...> However, this has not the same function as [FMP-Include: ] . In the stylesheet to be included, you have to define a named template (like a subroutine) <xsl:template name="somename"> You call then this template with <xsl:call-template name="somename"/> Martin
March 19, 200520 yr Place <xsl:include href="your file here"/> somewhere after <xsl:stylesheet ...> and before <xsl:template ...> However, this has not the same function as [FMP-Include: ] . In the stylesheet to be included, you have to define a named template (like a subroutine) <xsl:template name="somename"> You call then this template with <xsl:call-template name="somename"/> Martin
March 21, 200520 yr Author Thanks Martin! The only thing I changed with your code was the xsl:include. I found that xsl:import worked and the include did not. Nick
March 21, 200520 yr Author Thanks Martin! The only thing I changed with your code was the xsl:include. I found that xsl:import worked and the include did not. Nick
March 21, 200520 yr There is a slight difference between xsl:import and xsl:include, see here. Probably you match the same pattern in the main template and the included template (template ... match="/fmrs:fmresultset"). This conflict is only resolved with xsl:import , because the main stylesheet has the higher import precedence. In the included template, you don't need the match pattern, e.g. <xsl:template name="somename"> is sufficient. Then xsl:include should work as well.
March 21, 200520 yr There is a slight difference between xsl:import and xsl:include, see here. Probably you match the same pattern in the main template and the included template (template ... match="/fmrs:fmresultset"). This conflict is only resolved with xsl:import , because the main stylesheet has the higher import precedence. In the included template, you don't need the match pattern, e.g. <xsl:template name="somename"> is sufficient. Then xsl:include should work as well.
Create an account or sign in to comment