pdf generation ambiguous rule match

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pdf generation ambiguous rule match

mabu
Hi,

I have a simple form with one xf:input field. If I enter no value in the field an generate the pdf I get following error in the log:

2016-02-23 08:13:21,250 ERROR XSLTTransformer  - Error: Ambiguous rule match for /xh:html/xh:body[1]/xh:form[1]/div[3]/xh:div[6]/xh:div[1]/xh:span[1]/xh:div[1]/div[1]/div[1]/div[2]/xh:div[1]/xh:table[1]/xh:tbody[1]/xh:tr[1]/xh:td[1]/xh:div[1]/xh:span[1]/xh:span[1]
Matches both "*:pre[p:has-class('xforms-textarea', ..)] | *:span[p:has-class('xforms-field') and p:has-class('xforms-input', ..)]" on line 105 of oxf:/apps/fr/print/print-pdf-notemplate.xpl
and "*:span[p:has-class('xforms-field') and empty(*) and normalize-space() = '']" on line 133 of oxf:/apps/fr/print/print-pdf-notemplate.xpl

The pdf output is ok!

Martin
Reply | Threaded
Open this post in threaded view
|

Re: pdf generation ambiguous rule match

Erik Bruchez
Administrator
Martin,

Good catch. One rule exists to hyperlink URLs in fields, and the other rule exists to address this issue:

    https://github.com/orbeon/orbeon-forms/issues/2347

The latter should have a bit more priority. I entered and fixed this issue:

    https://github.com/orbeon/orbeon-forms/issues/2571

-Erik