Menu

#14 Duplicate ID

open-remind
None
6
2009-04-24
2009-04-24
No

<xforms:control id="x"> .... </xfotms:control>
Transformation
<table id="x"> .... <control id="x"> .... </control> .... </table>

Discussion

  • Dominique Rabeuf

    • priority: 5 --> 6
    • assigned_to: nobody --> alain-couthures
     
  • Alain Couthures

    Alain Couthures - 2009-04-24

    Please post a sample test file.

     
  • Alain Couthures

    Alain Couthures - 2009-04-24
    • status: open --> open-remind
     
  • Dominique Rabeuf

    <?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:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ps="http://www.web21.com/schemas"
    >
    <head>
    <title>Duplicate ID</title>
    <xf:model>
    <xf:instance>
    <ps:data>
    <ps:text>Dupilcate ID "textareaID"</ps:text>
    <ps:input>Duplicate ID "inputID"</ps:input>
    </ps:data>
    </xf:instance>
    </xf:model>
    </head>
    <body>
    <h1>Duplicate ID</h1>
    <div id="xformControl">
    <span>
    <input type="checkbox" onclick="$('console').style.display = this.checked? 'block' : 'none';" checked="checked"/> Debug
    </span>
    </div>
    <xf:textarea ref="ps:text" id="textareaID">
    <xf:label>textareaID</xf:label>
    </xf:textarea>
    <xf:input ref="ps:input" id="inputID">
    <xf:label>inputID</xf:label>
    </xf:input>
    <div id="console"></div>
    </body>
    </html>

     
  • Dominique Rabeuf

    <table> envelop element for the <control> and the <control> have the same ID

    I think it is preferable that
    - The original ID will be assigned to the <control>
    - The envelop ID will be set to concat('some-pre-defined-prefix',$ID)