kuma_24 Posted March 18, 2005 Posted March 18, 2005 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
kuma_24 Posted March 18, 2005 Author Posted March 18, 2005 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
kuma_24 Posted March 18, 2005 Author Posted March 18, 2005 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
Martin Brändle Posted March 19, 2005 Posted March 19, 2005 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
Martin Brändle Posted March 19, 2005 Posted March 19, 2005 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
Martin Brändle Posted March 19, 2005 Posted March 19, 2005 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
kuma_24 Posted March 21, 2005 Author Posted March 21, 2005 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
kuma_24 Posted March 21, 2005 Author Posted March 21, 2005 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
Martin Brändle Posted March 21, 2005 Posted March 21, 2005 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.
Martin Brändle Posted March 21, 2005 Posted March 21, 2005 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.
kuma_24 Posted March 22, 2005 Author Posted March 22, 2005 That works with the match gone now. Thanks. Nick
Recommended Posts
This topic is 7186 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now