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

xslt: excluding fields containing certain values


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

Recommended Posts

  • Newbies
Posted

hi guys,

we'd like to exclude certain fields from an xml-export, using an xslt.

these fields can be identified by its value: it's always 0 (zero).

what would be the code, to achieve this?

thanks in advance.

michael.

Posted

I'm not sur that I have understood the question.

If you want only use a field than not = "0" then use the "test" function.


    <xsl:if test="fmp:COL[x]/fmp:DATA != '0' ">

        <tag>

            <xsl:value-of select="fmp:COL[x]/fmp:DATA"/>

        </tag>

    </xsl:if>   

!= means "is not"

In attachment :

- fmp_output.xml : the raw filemaker xml exportation

- stylesheet.xsl : the stylesheet

- final_output.xml : the transformed document

example.zip

This topic is 7475 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.