<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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please post a sample test file.
<?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>
<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)