Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: conflicting operators

From: "Yan Leshinsky" <yanl@------.---------.--->
To: NULL
Date: 6/3/2004 10:31:00 AM
Following works for me:
<xsl:apply-templates select="*[name()='a' and (@value != 'bb' or 
not(starts-with(@value,'b')))]" />


"Sharon" <esdeees@h...> wrote in message 
news:2b13d59b.0406020126.7625903e@p......
> Hi,
> I have a filter function that gives the user 2 columns to select that
> they want to filter on, and I want the second filter to be negative. I
> also want to use the starts-with() function so that users won't have
> to fill in complete filtervalues. Combining the two, not() and
> starts-with() is somewhat problematic... Here's my xsl selectquery
> where the filtering is done, with both filters positive:
>
> <xsl:apply-templates select="general/data/rows/row/*[name()=$field1
> and (@value=$filter1 or
> starts-with(@value,$filter1))]/../*[name()=$field2 and
> (@value=$filter2 or starts-with(@value,$filter2))]/.."
> mode="tableData" />
>
> Now I thought the second filter had to look like this:
> *[name()=$field2 and (@value=!$filter2 or
> not(starts-with(@value,$filter2)))]
>
> but this one makes my table disappear completely. It says there's a
> problem with the Javascript, though, so that could be it as well...Can
> someone tell me if this is the proper way to do this? Or should I use
> more brackets or another combination of operators or something?
> Thanks! Sharon 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent