CSS for OSCAL XML #1732
Replies: 2 comments
-
Quick question: can you also embed inline CSS for "self-contained" OSCAL document (a catalog, SSP) complete with its own styling? I had not thought to even try that, but I assume that goes beyond the boundaries of what the |
Beta Was this translation helpful? Give feedback.
-
Yes but no: it needs an XSLT 1.0 shim at minimum, a 'loader'. Consequently it works only from a server (albeit localhost) kind of too bad. This is essentially what this architecture does: https://dcl.ils.indiana.edu/teibp/ The XSLT in this case would have templates only for showing with the styling in a place where the browser would know what to do (one template), plus small templates for anything that goes beyond CSS as such - for example, writing links into HTML to provide working links. It's a 1KB XSLT kind of XSLT. It could either acquire the CSS from elsewhere or simply rearrange CSS already there in the file some place. Why not do this all the time? For publishing, the best argument for transforming the entire document instead of just slapping CSS on it is probably the Accessible HTML argument. |
Beta Was this translation helpful? Give feedback.
-
Pasted below is some very basic CSS providing very basic layout to OSCAL Catalog XML.
How to use:
<?xml-stylesheet type="text/css" href="oscal-simple.css"?>
oscal-simple.css
href
path in the PIBeta Was this translation helpful? Give feedback.
All reactions