xsl-list
[Top] [All Lists]

Re: [xsl] filter using contains with multiple values

2016-03-04 11:38:44
On Fri, Mar 04, 2016 at 05:21:58PM -0000, Raimund Kammering 
raimund(_dot_)kammering(_at_)desy(_dot_)de scripsit:
wow getting more and more complex!

transformer.setParameter("filter_values", “'Log'");

You've got smart quotes -- the character that opens the double quotes
for 'Log' is U+201C, not U+0022.  The quote delimiter characters are
very specifically U+0022 and U+0027; anything else isn't a delimiter and
won't be parsed as a delimiter.

transformer.setParameter("filter_values", “‘Log’, ‘Info'”);

is worse; you've got “‘Log’, ‘Info'”
          instead of "'Log', 'Info'"

I intensely recommend using a fixed-pitch font where the difference is
obvious.  I don't offhand know what the transformer is going to with
those values, but I'm sure it's not what you want.

Can you test the XSLT directly in an environment without the java
wrapper?  (Run Saxon from the command line, oXygen transformation
scenario, something like that?)

-- 
Graydon Saunders
graydon(_at_)marost(_dot_)ca
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>