[Xsltforms-support] AVT and HTML attributes (Try again...)
Brought to you by:
alain-couthures
From: Benoit V. <bvi...@la...> - 2012-03-19 20:36:18
|
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 |