Different tabels and more CSS
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 4
- Joined: Fri Apr 04, 2014 2:32 pm
Different tabels and more CSS
Hi!
I have to adapt a XML and XSL file.
Usually there was the CSS just for one table in my XSL, but I want to have different tabels classes to change their lookings.
In my XML file i call the tabels:
In my XSL I have predefined for all tabels this:
How can I adapt this code to make my tabels look different?
Thank you!
I have to adapt a XML and XSL file.
Usually there was the CSS just for one table in my XSL, but I want to have different tabels classes to change their lookings.
In my XML file i call the tabels:
Code: Select all
<table class="first">....
<table class="second">....
Code: Select all
.section_table {
width: 100%;
}
.section_table tr td {
width: 100%;
}
Thank you!
-
- Posts: 63
- Joined: Fri Dec 12, 2003 6:34 pm
- Contact:
Re: Different tabels and more CSS
Post by iulian_velea »
Hello Mario,
When loading the CSS file, Oxygen does not interpret the rules .class_attribute_value the way a browser does.
So if you want to differentiate between your two tables in the CSS you can use something like the following two rules, where you can see that the attribute class and its value must be clearly specified:
Best regards,
Iulian
--
Iulian Velea
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
When loading the CSS file, Oxygen does not interpret the rules .class_attribute_value the way a browser does.
So if you want to differentiate between your two tables in the CSS you can use something like the following two rules, where you can see that the attribute class and its value must be clearly specified:
Code: Select all
table[class="first"] {
border: 1px solid blue;
}
table[class="second"] {
border: 1px solid red;
}
Iulian
--
Iulian Velea
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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