Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Using an include statement in XML


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

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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.

Posted

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.

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 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.