Hi, It should be a @nodeset attribute on the repeat not a @ref. On Thu, Jan 10, 2013 at 3:39 AM, Elias Mazur <[email protected]> wrote:
> <?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:xsd="http://www.w3.org/2001/XMLSchema > "> > <head> > <title>Test XForms</title> > <xf:model> > <xf:instance id="my"> > <data xmlns=""> > <Elem1> > <id seq="1">1</id> > </Elem1> > <Elem1> > <id seq="2">2</id> > </Elem1> > </data> > </xf:instance> > <xf:bind nodeset="instance('my')/Elem1/id@seq" type="xsd:integer"/> > </xf:model> > </head> > <body> > <p>Testing....</p> > <xf:repeat id="rep" ref="instance('my')/Elem1"> > <xf:input id="seqnum" ref="./id@seq"> > <xf:label>Seq: </xf:label> > <xf:alert>Must be integer</xf:alert> > </xf:input> > <br/> > <xf:input id="theid" ref="./id"> > <xf:label>Id: </xf:label> > </xf:input> > <br/><br/> > </xf:repeat> > </body> > </html> >
------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
