Hi,
Title says it all... When I try that: <?xml version="1.0" encoding="UTF-8"?> <html version="2.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude"> <head> <title>xforms:load repro case</title> <xforms:model> <xforms:instance id="instance"> <link xmlns="">http://www.orbeon.com</link> </xforms:instance> </xforms:model> </head> <body> <xforms:group ref="instance('instance')"> <p> <xforms:trigger appearance="xxforms:link"> <xforms:label>go (working)</xforms:label> <xforms:load ev:event="DOMActivate" ref="/link"/> </xforms:trigger> </p> <p> <xforms:trigger appearance="xxforms:link"> <xforms:label>go (not working)</xforms:label> <xforms:load ev:event="DOMActivate" ref="instance('instance')/link"/> </xforms:trigger> </p> </xforms:group> </body> </html> The first xforms:load is working while the second one isn't! Is that normal? Eric -- Curious about Relax NG? Read my book online. http://books.xmlschemata.org/relaxng/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- 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 |
Administrator
|
Hi Eric,
Has this been answered already? Anyway, the second load in the example does not work because the ref should read instance('instance') instead of instance('instance')/link, as instance() is returning the root element. Alex On 11/17/05, Eric van der Vlist <[hidden email]> wrote: > Hi, > > Title says it all... > > When I try that: > > <?xml version="1.0" encoding="UTF-8"?> > <html version="2.0" xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xi="http://www.w3.org/2001/XInclude"> > <head> > <title>xforms:load repro case</title> > <xforms:model> > <xforms:instance id="instance"> > <link xmlns="">http://www.orbeon.com</link> > </xforms:instance> > </xforms:model> > </head> > <body> > <xforms:group ref="instance('instance')"> > <p> > <xforms:trigger appearance="xxforms:link"> > <xforms:label>go (working)</xforms:label> > <xforms:load ev:event="DOMActivate" ref="/link"/> > </xforms:trigger> > </p> > <p> > <xforms:trigger appearance="xxforms:link"> > <xforms:label>go (not working)</xforms:label> > <xforms:load ev:event="DOMActivate" ref="instance('instance')/link"/> > </xforms:trigger> > </p> > </xforms:group> > </body> > </html> > > The first xforms:load is working while the second one isn't! > > Is that normal? > > Eric > -- > Curious about Relax NG? Read my book online. > http://books.xmlschemata.org/relaxng/ > ------------------------------------------------------------------------ > Eric van der Vlist http://xmlfr.org http://dyomedea.com > (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax > (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema > ------------------------------------------------------------------------ > > > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
Le lundi 21 novembre 2005 à 15:36 -0800, Alessandro Vernet a écrit : > Hi Eric, > > Has this been answered already? No, that's what you get when you overflow a mailing list :-) ... > Anyway, the second load in the example > does not work because the ref should read instance('instance') instead > of instance('instance')/link, as instance() is returning the root > element. That's proving that I am still an XForms newbie! Thanks, Eric -- If you have a XML document, you have its schema. http://examplotron.org ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- 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 |
Administrator
|
On 11/22/05, Eric van der Vlist <[hidden email]> wrote:
> > Anyway, the second load in the example > > does not work because the ref should read instance('instance') instead > > of instance('instance')/link, as instance() is returning the root > > element. > > That's proving that I am still an XForms newbie! An XForms newbie, or rather... an XPath guru :). The semantic of the XForms instance() and the XPath doc() are so different, that those who are familiar with both will continue making that mistake - and I am certain part of that group. Alex -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |