dlentry elements with conref
Posted: Wed Apr 01, 2015 1:07 pm
Hi,
I have a modular application with many data fields. Some data fields are used multiple times in the GUI of the application. My goal is to create databases with reusable explanations of the data fields and to reuse them by conkeyref. Unfortunately the validator forces me to create dd and dt elements.
This is an entry in a database:
Now I try to embed it by conkeyref. This gives me a validation error, the processing fails:
I'd like to continue using dlentry elements. Do you think that would be possible? Otherwise I have to use something more generic like li elements.
Thanks a lot and best regards,
Stefan
I have a modular application with many data fields. Some data fields are used multiple times in the GUI of the application. My goal is to create databases with reusable explanations of the data fields and to reuse them by conkeyref. Unfortunately the validator forces me to create dd and dt elements.
This is an entry in a database:
Code: Select all
<dl>
<dlentry id="myEntry">
<dt><uicontrol>My Field</uicontrol></dt>
<dd>My Description</dd>
</dlentry>
</dl>
Code: Select all
<dl>
<dlentry conkeyref="MyDataSource/myEntry"/>
</dl>
This works, but looks ugly because I have an empty dt and an emty dd element:The content of element type "dlentry" is incomplete, it must match "(dt+,dd+)".
Code: Select all
<dl>
<dlentry conkeyref="MyDataSource/myEntry">
<dt></dt>
<dd></dd>
</dlentry>
</dl>
Thanks a lot and best regards,
Stefan