xsd - How to specify read only text or label in an XML data schema -
I am referring to the XML data schema as explained here:.
When I retrieve the data from the database and submit it to the client, there are text fields that I want to keep in the form of an unexpected display / just read the fields. For example, hypothetically in the following sequence,
& lt; Xsd: element .... & lt; Xsd: element name = "employee name" xsd: type = "xsd: string" /> & Lt; Xsd: element name = "projID" xsd: type = "xsd: string" readOnly = 'true' & gt; & Lt; Xsd: element name = "give rent" type = "xsd: date" /> & Lt; Xsd: element .... & lt; Xsd: element name = "today" type = "xsd: date" to read only = 'true' /> & Lt; Xsd: element ....
Where client performance will interpret XSD stream and will create input form. Of course, the label is a Fide Schema tag, for which I have been explained my needs to keep a readable field in the middle of the form.
In the above example, ProZIT and today the user should be presented as a read-only field, but there is no such schema syntax as is read only.
In a way I know how to achieve it, this section is to break into two complex types of segments and divide it into two input forms
- My Nearly there are some read-only information fields that need to be presented, through the IRI, there will be a lot of hurdles in smooth single form. This is best for just one input form.
- Some read-only fields are submitted in the middle of the entity sequence. This means that interfering in the Database-to-Zado (or JPA) -C-Client data flow for that unit.
So, how to specify a read-only field element in an XML schema?
... and ( annoyance ) I can ask, how to specify hidden fields?
You can use it to provide such information for your application, it is strange, but it could work. Some on the lines of:
& lt; Xs: element name = "heading" type = "xs: string" & gt; & Lt; XS: Annotation & gt; & Lt; XS: appinfo & gt; & Lt; Read-only & gt; True & lt; / Read-only & gt; & Lt; / XS: appinfo & gt; & Lt; / XS: Annotation & gt; & Lt; / XS: element & gt;
Comments
Post a Comment