[docbook-css] Support for sgmltag
David Holroyd
dave at badgers-in-foil.co.uk
Fri, 22 Oct 2004 00:44:34 +0000
On Fri, Oct 22, 2004 at 12:06:23AM +0100, martin.gautier@myrnham.co.uk wrote:
> To support the <sgmltag> element, I have added "sgmltag" to the following
> line entry in styles.css
>
> cmdsynopsis, code, command, computeroutput, envar, filename, keycode,
> keysym,
> literal, option, parameter, systemitem, sgmltag {
> font-family: monospace;
> }
Ok, I've added that in, and this reminded me that there are a bunch of
possible 'class' attribute values going unhandled for <sgmltag>. I've
expanded the set to now look like this:
sgmltag[class="starttag"]:before, sgmltag[class="emptytag"]:before {
content: "<";
}
sgmltag[class="starttag"]:after, sgmltag[class="endtag"]:after {
content: ">";
}
sgmltag[class="endtag"]:before {
content: "</";
}
sgmltag[class="emptytag"]:after {
content: "/>";
}
sgmltag[class="attvalue"]:before {
content: '"';
}
sgmltag[class="attvalue"]:after {
content: '"';
}
sgmltag[class="genentity"]:before {
content: "&";
}
sgmltag[class="genentity"]:after {
content: ";";
}
sgmltag[class="sgmlcomment"]:before {
content: "<!--";
}
sgmltag[class="sgmlcomment"]:after {
content: "-->";
}
sgmltag[class="xmlpi"]:before {
content: "<?";
}
sgmltag[class="xmlpi"]:after {
content: "?>";
}
There's a few other values that I'd need to look up the punctuation for,
like "paramentity", "pi" vs. "xmlpi".
dave