Hi,

I agree that it works with xsl:if but the Orbeon documentation says that xxforms:if works on the current instance document whereas an xsl:if will work on the model data.

        Cheers,

        Matthew


On Nov 17, 2004, at 1:54 PM, Matt Allen wrote:

Matthew;

I think that should be an xsl:if rather than an xxforms:if?


-Matt

Matt Allen
Client Services Director - 0413 777 771
River Dynamics
Winner, Outstanding Australian Product Innovation
- 2004 iAwards
Winner, Innovation In Claims Management
- 2003 Australasian Claims Expo
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew J.
Graham
Sent: Thursday, November 18, 2004 6:38 AM
To: [EMAIL PROTECTED]
Subject: [orbeon-user] xxforms:if problem


Hi,

I have the following in my search-view.xsl:

       <xxforms:if test="count(/form/constraint) &gt; 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(XFor m
sElement.java:65)
at
org.orbeon.oxf.processor.xforms.output.XFormsOutput$3.startElement(XFor m
sOutput.java:135)
at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:160)
at
org.orbeon.oxf.processor.xforms.output.XFormsOutput$3.endElement(XForms O
utput.java:160)
at
org.orbeon.oxf.xml.TeeContentHandler.endElement(TeeContentHandler.java:
85)
at
org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingConten t
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



------------------------------------------------------- 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

Reply via email to