Hi Benoit, Sorry, AVT for HTML attributes of XForms elements is not yet supported.
-Alain Le 19/03/2012 21:36, Benoit VINCENT a écrit : > Hi Alain, > > I’m trying the very interesting AVT feature, but I have a small problem > with host language attributes like @class when they are included in > xforms elements. > > Example : > > <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xf="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:sample="http://www.agencexml.com/sample"> > > <head> > > <style typr="text/css"> > > .red_class { color: red; } > > </style> > > <title>Test AVT in @class</title> > > <xf:model> > > <xf:instance id="colors"> > > <data xmlns=""> > > <c>red</c> > > </data> > > </xf:instance> > > </xf:model> > > </head> > > <body> > > <xf:output ref="c" class="{c}_class"></xf:output> > > <p class="{c}_class">RED</p> > > </body> > > </html> > > The first @class (in<xf :output>) is never instanciated but the second > (in<p>) works fine. Is that a normal behaviour for AVT ? > > Regards > > Benoit > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Xsltforms-support mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
