Problems outputting data

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

Problems outputting data

Ryan Puddephatt

Hi all,

            I’m trying to fill attributes of HTML tags within an xforms:repeat, but it always shows empty, I’m currently using

 

<xforms:repeat nodeset="instance('foundPEAs')/role" id="roleRepeat">

  <p class="{@severity}">

    <xforms:output ref="@severity"/>

  </p>

</xforms:repeat>

 

Any ideas?

 

Ryan

 

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

 

 



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

Erik Bruchez
Administrator
Ryan,

If your XHTML page happens to be processed by XSLT, XSLT will interpret
the attribute value template (AVT) and it is probable that @severity
evaluates to an empty node-set, so the result will be <p class="">, and
that's what XForms will see.

Now even if you did send <p class="{@severity}"> to the XForms engine
(case where you XHTML+XForms page doesn't go through XSLT, or where you
escape the brackets), XForms wouldn't know what to do with this, as
XForms does not support AVTs at all.

As an extension, we have started supporting AVTs in select places, like
xforms:submission/@action, and we do think that support for AVTs as you
suggest below would make 100% sense, but currently OPS does not support
this.

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I’m trying to fill attributes of HTML tags within an
> xforms:repeat, but it always shows empty, I’m currently using
>
>  
>
> <xforms:repeat nodeset="instance('foundPEAs')/role" id="roleRepeat">
>
>   <p class="{@severity}">
>
>     <xforms:output ref="@severity"/>
>
>   </p>
>
> </xforms:repeat>
>
>  
>
> Any ideas?
>
>  
>
> Ryan
>
>  
>
> *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
>
>  
>
>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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

--
Orbeon - XForms Everywhere:
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