Re: [Xsltforms-support] Binding to the absence of a node
Brought to you by:
alain-couthures
From: Chimezie O. <chi...@gm...> - 2012-05-24 15:48:01
|
Hello, Dan (CC'ed support list). Thanks for the suggestion. I was eventually able to get it to work via: <xforms:group ref=".[not(AbsentElement)]"> <xforms:trigger> <xforms:label>Add absent element</xforms:label> ... action .. </xforms:trigger> </xforms:group> On Thu, May 24, 2012 at 10:03 AM, Dan McCreary <dan...@gm...> wrote: > Hello Chimezie, > > I have done this but I recall I just used the simpler following notation: > > <xforms:group ref="not(AbsentElement)"> > > or perhaps > > <xforms:group ref="./not(AbsentElement)"> > > Have you tried these? > > - Dan > > On Thu, May 24, 2012 at 7:07 AM, Chimezie Ogbuji <chi...@gm...> wrote: >> >> Hello, I'm trying to support a situation where a group of controls (or >> a single control) appear only if another node in the same instance >> document does not appear. When I was using XForms extension for >> Firefox in the past, I was able to do it this way: >> >> >> <xforms:group >> ref="current()[not(AbsentElement)]"> >> <xforms:trigger> >> <xforms:label>Add Skilled response >> section</xforms:label> >> .. action to add AbsentElement to >> context.. >> </xforms:trigger> >> </xforms:group> >> >> The general idea is to only show a trigger if AbsentElement is not a >> child of the current context, which will add that element if clicked. >> However, I get the following exception >> >> XSLTForms Exception >> -------------------------- >> >> Error parsing the following XPath expression : >> >> current()[not(AbsentElement)] >> >> Unknown operator at '[not(AbsentElement)]' in >> 'current()[not(AbsentElement)]' >> >> Can this be done in XSLTForms? >> >> Thanks. >> >> -- Chime >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > -- > Dan McCreary > NoSQL Evangelist > office: (952) 931-9198 > cell: (612) 986-1552 |