[Xsltforms-support] parsing XPath expressions
Brought to you by:
alain-couthures
From: christophe g. <chr...@e-...> - 2009-11-25 16:51:06
|
Dear Alain and all I have done some tests with the xsltforms library today to see what would be the amount of work necessary to port my xForms application (currently runing under with the mozilla plugin) to xhtml forms. there are part of code that will need to be refined (css mainly, I fear), but it seems more or less in control. But, first of all - the xsltforms library and concept looks great and it is a real relief to see xforms solutions coming out! And the fact that xsltforms is integrated with eXist is also a really good new. There are a couple of errors thrown while xpath code is being processed that I don't quite get however (as I think it is valid xpath, or at leat, it was recognized so with the FF plugin). I use the latest code downloaded from sourceforge, and FF 3 under a linux distribution) and, by the way am not in a hurry as I will continue to use the FF plugin for development and switch to xsltforms a bit later. Cheers Christophe XSLTForms Exception -------------------------- Error parsing the following XPath expression : if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '), concat(substring-before(. ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ') ), substring-after ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ')))) Unknown operator at ' ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '))))' in 'if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '), concat(substring-before(. ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ') ), substring-after ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '))))' XSLTForms Exception -------------------------- Error parsing the following XPath expression : if(string-length(.) = 0 ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .) Unknown operator at ':*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .)' in 'if(string-length(.) = 0 ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .)' XSLTForms Exception -------------------------- Error parsing the following XPath expression : not(../preceding-sibling::*/label = .) or string-length(.)=0 Unknown operator at ':*/label = .) or string-length(.)=0' in 'not(../preceding-sibling::*/label = .) or string-length(.)=0' -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |