<html>
<head>
<title>ebXML Business Entity Definition</title>
</head>
<body>
<h1 align="center">ebXML Additional Components Definition</h1>
<form id="Entity" method="POST"
onsubmit="var XMLdec = '<?xml version="1.0"?>\n' ;
var OutputDTD = '<!DOCTYPE Order SYSTEM "c:/My Documents/ebxml/CoreComponents2.dtd">\n';
var filepath = document.all.EntityDirectory.value ;
var filename = filepath + document.all.EntityID.value + '.xml';
var text = XMLdec + OutputDTD ;
text += '<CoreComponents>\n';
text += '<Entity>\n';
text += '<Date>' + document.all.Date.value + '</Date>\n';
text += '<Submitter>' + document.all.Submitter.value + '</Submitter>\n';
text += '<Community>' + document.all.Community.value + '</Community>\n';
text += '<Identifier>' + document.all.EntityID.value + '</Identifier>\n';
text += '<Name>' + document.all.EntityName.value + '</Name>\n';
text += '<Description>' + document.all.Description.value + '</Description>\n';
for (i=0; i < document.all.PropertyName.length; i++)
{if (document.all.PropertyName[i].getAttribute('value') != '')
{text += '<Component>\n';
text += '<Name>' + document.all.PropertyName[i].getAttribute('value') + '</Name>\n';
text += '<Description>' + document.all.PropertyDescription[i].getAttribute('value') + '</Description>\n';
text += '<Cardinality>' + document.all.Cardinality[i].getAttribute('value') + '</Cardinality>\n';
{if (document.all.FieldType[i].getAttribute('value') == 'R')
{text += '<RepresentationID>' + document.all.ID[i].getAttribute('value') + '</RepresentationID>\n';}
else text += '<EntityID>' + document.all.ID[i].getAttribute('value') + '</EntityID>\n';
}
text += '</Component>\n';
}
}
for (i=0; i < document.all.Use.length; i++)
{if (document.all.Use[i].getAttribute('value') != '')
{text += '<EntityApplication>\n';
text += '<Name>' + document.all.Use[i].getAttribute('value') + '</Name>\n';
text += '<Description>' + document.all.Function[i].getAttribute('value') + '</Description>\n';
text += '<Constraints>' + document.all.Constraints[i].getAttribute('value') + '</Constraints>\n';
text += '</EntityApplication>\n';
}
}
text += '</Entity>\n';
text += '</CoreComponents>\n';
var NewFile = new ActiveXObject('Scripting.FileSystemObject');
var Response = NewFile.CreateTextFile(filename, true);
Response.Write(text);
Response.Close();
window.open(filename);
"
>
<p align="right">Date: <input type="hidden" name="Date" size="20" onfocus="window.status='Enter date as CCYY-MM-DD'">' + document.all.Date.value + '<br>
Submitter: <input type="hidden" name="Submitter" size="20" onfocus="window.status='Enter name of submitting organization'"></p>
<p>User Community: <input type="hidden" name="Community" size="30" onfocus="window.status='Enter name of community who this core component is aimed at'"><br>
Entity ID: <input type="hidden" name="EntityID" size="20" onfocus="window.status='Assign Unique ID which can be used as filename for business entity definition'">	
Directory for Entity storage: <input type="hidden" name="EntityDirectory" size="30" value="c:/My Documents/ebxml/entities/" onfocus="window.status='Enter path to directory to be used to store patterns on local client or network'"><br>
Entity Name: <input type="hidden" name="EntityName" size="76" onfocus="window.status='Assign name by which entity will be referred to within documents'"> <br>
Entity Description:<br>
<textarea rows="7" name="Description" cols="77" onfocus="window.status='Describe purpose of business entity as concisely as possible'"></textarea></p>
<h4 align="left">Embedded Components</h4>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="145">
<tr>
<td>Name</td>
<td>Type</td>
<td>Identifier<sup>1</sup></td>
<td>Card.<sup>2</sup></td>
<td>Description</td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="24"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="24"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="24"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="24"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="24"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="24"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="24"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="24"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
<tr>
<td height="25"><input type="text" name="PropertyName" size="20" onfocus="window.status='Assign name by which component will be reffered to within documents'"></td>
<td height="25"><select size="1" name="FieldType" onfocus="window.status='Indicate whether embedded entity, or a data containing element with a specific representation'">
<option value="E">Entity Definition</option>
<option value="R">Data Representation</option>
</select></td>
<td height="25"><input type="text" name="ID" size="15" onfocus="window.status='Assign Unique ID that will be used as filename for entity definition'"></td>
<td height="25"><input type="text" name="Cardinality" size="5" onfocus="window.status='Leave blank if only one, or enter 0..1, 0..*, 1..* or m..n'"></td>
<td height="25"><textarea rows="1" name="PropertyDescription" cols="30" onfocus="window.status='Briefly describe the purpose of the component'"></textarea></td>
</tr>
</table>
<p><sup>1</sup> Identifier assigned to formal definition of Data Entity/Data Representation<br>
<sup>2</sup> Cardinality of object (how many times it can occur) expressed as 0..1 (optional), 0..* (optional and repeatable), 1..* (required and repeatable) or m..n (m=min, n=max no of occurrences)</p>
<p align="center"><input type="submit" value="Submit these components"> <input type="button" value="Add Further Components" name="AdditionalComponents"></p>
<p align="center"><input type="button" value="New Entity Definition" onclick="window.open('Entity.htm')"></p>
<p align="center"><input type="button" value="Create Data Representation Definition" onclick="window.open('Representation.htm')"></p>
</p>
</form>
</body>
</html>