Re: [Xsltforms-support] xf:bind elements with no @nodeset attribute fails with a cryptic message, f
Brought to you by:
alain-couthures
From: Kostis A. <ank...@gm...> - 2010-03-29 14:29:03
|
Attaching here forgotten test-case xform reproducing the error: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="xsltforms/xsltforms.xsl" encoding="UTF-8" type="text/xsl"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" > <head> <title>Bind with no nodeset</title> <xf:model id="model-main" schema="xsd1.xml"> <xf:instance id="inst-main" > <data:root/> </xf:instance> <xf:bind id="bind-someBind" /> </xf:model> </head> <body> It fails on start up with a cryptic XPAth-invalid message. </body> </html> On Mon, Mar 29, 2010 at 2:19 PM, Kostis Anagnostopoulos <ank...@gm...> wrote: > The generation of XPATH for <f:bind> elements with no @nodeset attribute > (for instance, when <xf:bind> is used only for its @calculate or MIP > attributes) > fails with a cryptic message, saying: "4.*[1]". > > The problem appeared on rev361 ("XPath parsing loop with node-set()") > which i tihnk is caused by an erroneous xsl generated-template at > trunk/buid/xsltforms.xsl:189: > <xsl:if test="//xforms:bind[not(@nodeset)]"><xexpr>4.*[1]</xexpr></xsl:if> > > - Reproduced on all browsers (ie, FF, chrome) > > Regards, > Kostis Anagnostopoulos > |