[Xsltforms-support] Problem with several attributes with AVT in the same element
Brought to you by:
alain-couthures
From: Benoit V. <bvi...@la...> - 2012-03-26 20:25:25
|
Hi Alain, I encounter au problem with AVT when I try to use them in two differents attributes in the same element. In this example, I want to build a small menu : <?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"> <head> <title>Test double AVT</title> <xf:model> <xf:instance id="ins_menu"> <data xmlns=""> <menu><name>menu 1</name><url>page1.html</url><title>Navigate to page 1</title></menu> <menu><name>menu 2</name><url>page2.html</url><title>Navigate to page 2</title></menu> <menu><name>menu 3</name><url>page3.html</url><title>Navigate to page 3</title></menu> </data> </xf:instance> </xf:model> </head> <body> <ul> <xf:repeat nodeset="menu"> <li><a href="{url}" title="{title}"><xf:output ref="name"></xf:output></a></li> </xf:repeat> </ul> </body> </html> This form don't works (error message : xf.clone is not a function) but if I remove the attribute title="{title}" in the <a> element it works fine. Is this normal? Regards Benoit |