problems accessing second instance

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

problems accessing second instance

Mathias Picker
Hi all,

with this instance:

<xforms:instance id="calc">
<calc>
        <desktop><price>500</price> <sum /></desktop>
        <diskspace><price>10</price> <sum/> </diskspace>
        <pbx><price>200</price><sum/></pbx>
        <did><price>50</price><sum /></did>
</calc>
</xforms:instance>
               
And this output element:

        <xforms:output ref="instance('calc')/diskspace/price"/>

I get nothing.

This:

        <xforms:output ref="instance('calc')"/>

gives me:

         500 10 200 50

as expected.

How can I access the elements, e.g. price and such. The above path seems
ok to me, but it obviously isn't.

Any help apreciated,

Mathias




--
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
Reply | Threaded
Open this post in threaded view
|

RE: problems accessing second instance

Ryan Puddephatt
Mathias,
        I copied what you sent into a page and it work fine for me showing
10. I've attached the file for you to look at

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Mathias Picker [mailto:[hidden email]]
>Sent: 17 April 2006 18:59
>To: ops-users
>Subject: [ops-users] problems accessing second instance
>
>Hi all,
>
>with this instance:
>
><xforms:instance id="calc">
><calc>
> <desktop><price>500</price> <sum /></desktop>
> <diskspace><price>10</price> <sum/> </diskspace>
> <pbx><price>200</price><sum/></pbx>
> <did><price>50</price><sum /></did>
></calc>
></xforms:instance>
>
>And this output element:
>
> <xforms:output ref="instance('calc')/diskspace/price"/>
>
>I get nothing.
>
>This:
>
> <xforms:output ref="instance('calc')"/>
>
>gives me:
>
> 500 10 200 50
>
>as expected.
>
>How can I access the elements, e.g. price and such. The above path seems
>ok to me, but it obviously isn't.
>
>Any help apreciated,
>
>Mathias
>


--
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

test.xsl (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: problems accessing second instance

Mathias Picker
Am Montag, den 17.04.2006, 19:05 +0100 schrieb Ryan Puddephatt:
> Mathias,
> I copied what you sent into a page and it work fine for me showing
> 10. I've attached the file for you to look at
[snip]

Ryan,

_Thank you_ for this simple test case.

That did work for me, too, bringing me to inspect... the namespace
declarations (the last thing I would have looked). Somehow I had xhtml
both with xhtml prefix and as default namespace, and that caused this
strange behaviour.

So, problem solved. Many thanks from

Mathias




--
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