This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XSL exclusion of elements
- From: "Manish M. Shah" <manish at catylist dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: 17 Jun 2002 14:27:36 -0500
- Subject: [xsl] XSL exclusion of elements
- References: <OF2F147AB5.77F1A228-ON85256BDB.0068DC3C@dtcc.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hey guys,
I want to do a combination of two items in one select so it only returns
the elements that are valid:
<xsl:for-each select="Group/Field">
<xsl:variable name="val"
select="normalize-space(concat('//',DatabaseVariableName))"/>
<xsl:if test="( not(DatabaseVariableName='endDate')
and not(DatabaseVariableName='password')
and not(DatabaseVariableName='access')
and not(DatabaseVariableName='status')
and (not(normalize-space(saxon:evaluate($val))=''))
and (not(normalize-space(saxon:evaluate($val))='0'))
and
(not(normalize-space(saxon:evaluate($val))='0.0'))
and
(not(normalize-space(saxon:evaluate($val))='0.0'))
and (not(normalize-space(saxon:evaluate($val))=
'$NON_VALUE'))
and
(not(normalize-space(saxon:evaluate($val))='false'))
and
(not(normalize-space(DatabaseVariableName)='listingTerms'))
and
(not(normalize-space(saxon:evaluate($val))='*None Selected*')) )">
AT THIS POINT: I want to be able to select all elements that are in
"Group/Field", excluding out everything in the xsl:if test.
blah
blah
blah
</xsl:for-each>
Anyone have any ideas?
Thanks.
Manish
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list