docx4j support for content controls (sdt), especially binding them to Custom XML, including OpenDoPE implementation
I would like to test out the condition binding in docx4j
I found that some xpath function works but some does not, for example contains works but matches does not work:
/path/teststring contains abc
xpath="contains(/path/teststring,"abc")" returns true
xpath="string(/path/teststring)="abc"" does not return true
Please advise what is the best way to compare xpath value with string.
- Posts: 5
- Joined: Tue Jun 23, 2015 8:14 pm
You can use functions supported by the underlying javax.xml.xpath.XPath implementation, namely org.apache.xpath.jaxp.XPathImpl
Which means 1.0 functions.
- Posts: 3330
- Joined: Wed Mar 19, 2008 11:47 pm
Return to content controls (w:sdt) and data binding
Who is online
Users browsing this forum: No registered users and 2 guests