--- Jos Vos <[EMAIL PROTECTED]> wrote:
>   <xsl:if
>
test="contains(document('input:instance')/form/field/@xxforms:invalid-bind-ids,
> 'a')"/>
>     <xf:alert> .... </xf:alert>
>   </xsl:if>
>   <xsl:if
>
test="contains(document('input:instance')/form/field/@xxforms:invalid-bind-ids,
> 'b')"/>
>     <xf:alert> .... </xf:alert>
>   </xsl:if>
> 
> Is this correct?

Yes, this is how it should be done.

>  It would me more convenient if I could just say:
> 
>   <xf:alert id="a"> ... <xf:alert>
>   <xf:alert id="b"> ... <xf:alert>
> 
> But this appearently doesn't work...

It may be more convenient, but the XForms specification does not support
this. If you don't want to use the above method (XSLT in the view), you
could add an attribute of your own on the <xforms:alert> (in your own
namespace) and display the appropriate alert based on the invalid id in
the xforms-to-xhtml.xsl or theme.xsl.

Alex



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to