[Xsltforms-support] test on axes support
Brought to you by:
alain-couthures
From: christophe g. <chr...@e-...> - 2010-02-03 11:24:08
|
Hi all I must be missing something re axes support (I read somewhere that axes support had been integrated - I might be wrong though). The following form casts an xPath expression Error (Unknown operator at ':rep/tt' in 'current()/ancestor::rep/tt). Or is there another way to declare axes? <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> <?xsltforms-options debug="yes"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" > <head> <title>test axis</title> <xf:model id="my_model"> <xf:instance id="my_instance"> <data xmlns=""> <rep> <tt>tt</tt> <level1> <level2>test1</level2> </level1> <level1> <level2>test2</level2> </level1> </rep> </data> </xf:instance> </xf:model> </head> <body> <p>axis</p> <xf:repeat nodeset="instance('my_instance')/rep/level1"> level2: <xf:output ref="level2"/> test axis: <xf:output ref="current()/ancestor::rep/tt"/> </xf:repeat> </body> </html> Thanks in advance Christophe -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |