Jump to content

Using an include statement in XML


kuma_24

This topic is 6998 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6998 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.