How can I represent an xml element with some attributes (id, name, ...) in a table with a css file ?
Oxygen general issues.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
How can I represent an xml element with some attributes (id, name, ...) in a table with a css file ?
Post by sebastienlavandier »
Hello,
I have already represent a xml element in a table with a css file (table, table-row, table-cell, ...).
It works well !
But now, I meet a problem with an other xml element which is composed by many attributes (Id, name, refs, ...) and I can't build a table to represent this.
Example :
<hotspot id="fig-0001-gra-0001-hot-0000" applicationStructureIdent="hot000" applicationStructureName="0" hotspotType="CALLOUT" hotspotTitle="BICYCLE" objectDescr="BICYCLE"/>
hotspot {
display: table-row;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
}*/
hotspot[id] {
display: table-cell;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
content:attr(id);
}
hotspot[applicationStructureIdent] {
display: table-cell;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
content:attr(applicationStructureIdents);
}
I want represent this element in a Row, where each attribute is a cell. How can I do that ? Maybe Author Oxygen proposes a solution for this typically xml problem ?
Do you have some ideas ?
Thanks in advance for your answer.
I have already represent a xml element in a table with a css file (table, table-row, table-cell, ...).
It works well !
But now, I meet a problem with an other xml element which is composed by many attributes (Id, name, refs, ...) and I can't build a table to represent this.
Example :
<hotspot id="fig-0001-gra-0001-hot-0000" applicationStructureIdent="hot000" applicationStructureName="0" hotspotType="CALLOUT" hotspotTitle="BICYCLE" objectDescr="BICYCLE"/>
hotspot {
display: table-row;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
}*/
hotspot[id] {
display: table-cell;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
content:attr(id);
}
hotspot[applicationStructureIdent] {
display: table-cell;
padding: 0.3em;
border: 1px solid gray;
vertical-align: top;
text-align: center;
content:attr(applicationStructureIdents);
}
I want represent this element in a Row, where each attribute is a cell. How can I do that ? Maybe Author Oxygen proposes a solution for this typically xml problem ?
Do you have some ideas ?
Thanks in advance for your answer.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How can I represent an xml element with some attributes (id, name, ...) in a table with a css file ?
Hello Sebastien,
Sorry but you cannot visually create table cells from an element's attributes.
In the next Oxygen version (14.1) you will at least be able to edit attributes in-place using usual controls like combo boxes or text fields so at least this will maybe prove useful for editing attributes.
For example you will be able to specify something in the CSS like:
As you see you will also be able to specify the number of characters which should fit in the combo box, thus these values will appear aligned as if they would be present in a table.
Regards,
Radu
Sorry but you cannot visually create table cells from an element's attributes.
In the next Oxygen version (14.1) you will at least be able to edit attributes in-place using usual controls like combo boxes or text fields so at least this will maybe prove useful for editing attributes.
For example you will be able to specify something in the CSS like:
Code: Select all
hotspot{
content: "ID: " oxy_editor(type, combo, edit, "@id", colums, 20)
" Ident: " oxy_editor(type, combo, edit, "@applicationStructureIdent", colums, 20)
" Name: " oxy_editor(type, combo, edit, "@applicationStructureName", colums, 20)
" Title: " oxy_editor(type, combo, edit, "@hotspotTitle", colums, 20)
" Descr: " oxy_editor(type, combo, edit, "@objectDescr", colums, 20);
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Re: How can I represent an xml element with some attributes (id, name, ...) in a table with a css file ?
Post by sebastienlavandier »
Thanks for your answer Radu.
Regards
Sébastien.
Regards
Sébastien.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service