Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using an include statement in XML

Featured Replies

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

  • 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

  • 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

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

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

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

  • 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

  • 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

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.

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.

  • Author

That works with the match gone now. Thanks.

Nick

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.