XSL - Positions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IanPaskin
    New Member
    • Mar 2008
    • 2

    XSL - Positions

    Hi All,

    I use this variable to get the amount of lines i need to pad out an fop document

    <xsl:variable name="xtra_line s" select="number( 20 - (count(orders/item) mod 20))"/>

    XML layout

    <orders>
    <item comment='Y'>
    ....
    </item>
    <item comment='N'>
    ....
    </item>
    </orders>

    The above is working ok but now i need to only include only the nodes with comment = N

    Any thoughts on the changes to my variable?

    Regards

    Ian
  • IanPaskin
    New Member
    • Mar 2008
    • 2

    #2
    Got it to work using..

    <xsl:variable name="xtra_line s" select="number( 20 - (count(orders/item[comments = 'N']) mod 20))"/>

    Ian

    Comment

    Working...