Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ivan 139 posts 302 karma points
    Feb 25, 2010 @ 13:04
    Ivan
    0

    Help for filtering import from external data source

    Hi:

    I am importing entries from external data source and need to filter entries imported by ID number.

    During import process, system will check if current entry ID is contained in an array of skippable numbers and, in that case, entry will be ignored.

    Is there anyaway i can do that in pure XSLT? I could use a C# function but i prefer not to.

    If you could send me an example explaining how to do array check you will make my day ;-)

    Thanks,
    Ivan

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Feb 25, 2010 @ 14:22
    Thomas Höhler
    100

    You can use the contains function, I have used it to hide defined nodeTypes from the menu:

    <xsl:param name="nodeTypes">dtFeriCareer;dtFeriStiftungsCommunityStiftung;</xsl:param>
    <xsl:for-each select="... and contains($nodeTypes, concat(@nodeTypeAlias, ';'))">

    hth, Thomas

  • Ivan 139 posts 302 karma points
    Feb 25, 2010 @ 14:28
    Ivan
    0

    You are the best Thomas ;-)

    Thanks a lot!

Please Sign in or register to post replies

Write your reply to:

Draft