Greetings
I have a small problem with multiple xml instances in my xforms file. Here is a minimal "working" example. First, the instance inclusion looks like this: <xf:instance id="request"> <xi:include href="request.xml" xxi:omit-xml-base="true" /> </xf:instance> and is referenced in the xforms like (the nodeset is explained further) <xf:repeat nodeset="..."> <xf:input ref="title"> <xf:label>Titul</xf:label> </xf:input> </xf:repeat> BUT: when I use default instance in repeat nodeset everything works fine. But when I set nodeset like instance('request')/request/submitters/person it fails to find any node. What am I missing? Jakub Hozak -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Jakub,
Can't see your actual instance data, but i should guess that you are encountering the fact that the instance function gobbles up the top level element of your instance. So your expression should be: instance('request')/submitters/person Hope that works. Henrik On 10/3/06, Jakub Hozak <[hidden email]> wrote: > Greetings > > I have a small problem with multiple xml instances in my xforms file. > Here is a minimal "working" example. First, the instance inclusion looks > like this: > > <xf:instance id="request"> > <xi:include href="request.xml" xxi:omit-xml-base="true" /> > </xf:instance> > > and is referenced in the xforms like (the nodeset is explained further) > > <xf:repeat nodeset="..."> > <xf:input ref="title"> > <xf:label>Titul</xf:label> > </xf:input> > </xf:repeat> > > BUT: > > when I use default instance in repeat nodeset everything works fine. But > when I set nodeset like > > instance('request')/request/submitters/person > > it fails to find any node. > > What am I missing? > > Jakub Hozak > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks a lot! That was the cause.
Jakub On 10/3/06, Henrik Pettersen <[hidden email]> wrote: > Jakub, > > Can't see your actual instance data, but i should guess that you are > encountering the fact that the instance function gobbles up the top > level element of your instance. So your expression should be: > > instance('request')/submitters/person > > Hope that works. > > Henrik > > On 10/3/06, Jakub Hozak <[hidden email]> wrote: > > Greetings > > > > I have a small problem with multiple xml instances in my xforms file. > > Here is a minimal "working" example. First, the instance inclusion looks > > like this: > > > > <xf:instance id="request"> > > <xi:include href="request.xml" xxi:omit-xml-base="true" /> > > </xf:instance> > > > > and is referenced in the xforms like (the nodeset is explained further) > > > > <xf:repeat nodeset="..."> > > <xf:input ref="title"> > > <xf:label>Titul</xf:label> > > </xf:input> > > </xf:repeat> > > > > BUT: > > > > when I use default instance in repeat nodeset everything works fine. But > > when I set nodeset like > > > > instance('request')/request/submitters/person > > > > it fails to find any node. > > > > What am I missing? > > > > Jakub Hozak > > > > > > > > > > -- > > You receive this message as a subscriber of the [hidden email] mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |