Hi,
Here is a test XForms code that OPS (20060807-nightly build) is failing to render the select1 control: this also happens in the XForms sandbox. I know that I'm just doing something stupid but can't see what's wrong: <html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- MODELS --> <xforms:model> <!-- INSTANCES --> <xforms:instance id="xquery"> <form> <query/> <queryhistory/> <hitsperpage/> <querystart/> <action/> <startoffset>1</startoffset> <results/> </form> </xforms:instance> <xforms:instance id="queryInstance"> <form> <query/> </form> </xforms:instance> <xforms:instance id="examples"> <examples> <query> <description>--- Select ---</description> <code/> </query> <query> <description>All resources</description> <code>/*</code> </query> </examples> </xforms:instance> <!-- BINDINGS --> <!-- SUBMISSIONS --> <xforms:submission id="xquerysubmit" method="post" ref="instance('xquery')" action="/query/advancedsearch"/> </xforms:model> </head> <body> <widget:tabs> <widget:tab id="xqueryTab" selected="true"> <widget:label>XQuery</widget:label> <p> When entering a XPath query, simple wildcards *, ?, [a-z] are allowed. Note that namespaces must be considered. </p> <h5>Examples</h5> <p>To help you get started, you might want to select one of the example queries in the select box below ('XP' denotes a XPath query, 'XQ' a XQuery query):</p> <xforms:select1 ref="instance('queryInstance')/query" appearance="minimal"> <xforms:itemset nodeset="instance('examples')/query"> <xforms:label ref="description"/> <xforms:value ref="code"/> </xforms:itemset> </xforms:select1> </widget:tab> </widget:tabs> </body> </html> Cheers, Matthew -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Matthew,
It's a namespace prefix "hell". Maybe someone can explain why... Try this : <xhtml:html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:widget="http://orbeon.org/oxf/xml/widget"> <xhtml:head> <!-- MODELS --> <xforms:model> <!-- INSTANCES --> <xforms:instance id="xquery"> <form> <query/> <queryhistory/> <hitsperpage/> <querystart/> <action/> <startoffset>1</startoffset> <results/> </form> </xforms:instance> <xforms:instance id="queryInstance"> <form> <query/> </form> </xforms:instance> <xforms:instance id="examples"> <examples> <query> <description>--- Select ---</description> <code/> </query> <query> <description>All resources</description> <code>/*</code> </query> </examples> </xforms:instance> <!-- BINDINGS --> <!-- SUBMISSIONS --> <xforms:submission id="xquerysubmit" method="post" ref="instance('xquery')" action="/query/advancedsearch"/> </xforms:model> </xhtml:head> <xhtml:body> <widget:tabs> <widget:tab id="xqueryTab" selected="true"> <widget:label>XQuery</widget:label> <xhtml:p> When entering a XPath query, simple wildcards *, ?, [a-z] are allowed. Note that namespaces must be considered. </xhtml:p> <xhtml:h5>Examples</xhtml:h5> <xhtml:p>To help you get started, you might want to select one of the example queries in the select box below ('XP' denotes a XPath query, 'XQ' a XQuery query):</xhtml:p> <xforms:select1 ref="instance('queryInstance')/query" appearance="minimal"> <xforms:itemset nodeset="instance('examples')/query"> <xforms:label ref="description"/> <xforms:value ref="code"/> </xforms:itemset> </xforms:select1> </widget:tab> </widget:tabs> </xhtml:body> </xhtml:html> -----Message d'origine----- De : Matthew Graham [mailto:[hidden email]] Envoyé : vendredi 8 septembre 2006 07:30 À : [hidden email] Objet : [ops-users] Select1 not showing Hi, Here is a test XForms code that OPS (20060807-nightly build) is failing to render the select1 control: this also happens in the XForms sandbox. I know that I'm just doing something stupid but can't see what's wrong: <html xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- MODELS --> <xforms:model> <!-- INSTANCES --> <xforms:instance id="xquery"> <form> <query/> <queryhistory/> <hitsperpage/> <querystart/> <action/> <startoffset>1</startoffset> <results/> </form> </xforms:instance> <xforms:instance id="queryInstance"> <form> <query/> </form> </xforms:instance> <xforms:instance id="examples"> <examples> <query> <description>--- Select ---</description> <code/> </query> <query> <description>All resources</description> <code>/*</code> </query> </examples> </xforms:instance> <!-- BINDINGS --> <!-- SUBMISSIONS --> <xforms:submission id="xquerysubmit" method="post" ref="instance('xquery')" action="/query/advancedsearch"/> </xforms:model> </head> <body> <widget:tabs> <widget:tab id="xqueryTab" selected="true"> <widget:label>XQuery</widget:label> <p> When entering a XPath query, simple wildcards *, ?, [a-z] are allowed. Note that namespaces must be considered. </p> <h5>Examples</h5> <p>To help you get started, you might want to select one of the example queries in the select box below ('XP' denotes a XPath query, 'XQ' a XQuery query):</p> <xforms:select1 ref="instance('queryInstance')/query" appearance="minimal"> <xforms:itemset nodeset="instance('examples')/query"> <xforms:label ref="description"/> <xforms:value ref="code"/> </xforms:itemset> </xforms:select1> </widget:tab> </widget:tabs> </body> </html> Cheers, Matthew -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |