Matthew,
This a known limitation of the xxforms:if. It currently works only with simple XPath expressions: relative to the closest xforms:group, or absolute, but you can't use functions.
I already have the fix, but need to run a few more tests before committing that to CVS. I'll let you know when it's done.
Julien
Matthew J. Graham wrote:
Hi,
I have the following in my search-view.xsl:
<xxforms:if test="count(/form/constraint) > 1"> <xforms:submit> <xforms:label>AND</xforms:label> </xforms:submit> </xxforms:if>
The AND button will only show if there is more than one /form/constraint (this is all enclosed in a xforms:repeat on the /form/constraint nodeset).
The error thrown is:
org.dom4j.InvalidXPathException: Invalid XPath expression: /form/constraint[1]/count(/form/constraint) > 1 Expected node-type
at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:316)
at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:63)
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:188)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at org.orbeon.oxf.xml.XPathUtils.selectBooleanValue(XPathUtils.java:482)
at org.orbeon.oxf.xml.XPathUtils.selectBooleanValue(XPathUtils.java:473)
at org.orbeon.oxf.processor.xforms.output.element.XFormsElement.start(XForm sElement.java:65)
at org.orbeon.oxf.processor.xforms.output.XFormsOutput$3.startElement(XForm sOutput.java:135)
at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:160)
at org.orbeon.oxf.processor.xforms.output.XFormsOutput$3.endElement(XFormsO utput.java:160)
at org.orbeon.oxf.xml.TeeContentHandler.endElement(TeeContentHandler.java: 85)
at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent Handler.java:51)
at org.orbeon.oxf.xml.SAXStore.endElement(SAXStore.java:251)
at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:168)
Any ideas?
Cheers,
Matthew
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
