Jump to content

xslt: excluding fields containing certain values


guywithfourkids
 Share

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

Recommended Posts

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

Link to comment
Share on other sites

This topic is 6434 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
 Share

×
×
  • Create New...

Important Information

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