Home Forums General XMetaL Discussion Relax NG and XInclude? Reply To: Relax NG and XInclude?

dcramer

Reply to: Relax NG and XInclude?

Ok, got it to work. I had replaced the default structure css with my css that shows the document structure, but hadn't added a rule to handle the xi:include element, which apparently XMetaL considers to be a parent node to the xincluded content:

xi|include{
display: inline;
}

I think the DocBook samples would be more impressive with a good structure view css. Here's what I use, in case you want to use it:

@sq-plus-minus;

@sq-structure-view-icons;

$COMMENT {
display: none;
}

* {
white-space: nowrap;
text-align: left;
font-family: "Arial";
font-size: 10pt;
font-style: normal;
font-weight: bold;
color: black;
margin-left: 20px;
display: none;
}

/* top-level elements */
$DOCUMENT > * {
margin-left: 0px;
}

xi|include{
display: inline;
}

title, title *, glossterm, glossterm *, question * {
display: inline;
}

book, part, chapter, article, section, simplesect, glossary, preface, reference, appendix, procedure, glossentry, glossdiv, glossentry, qandaset, qandaentry, question {
display: block;
}

procedure>title, procedure>title *{
  color: green;
}

chapter>title, part>title, appendix>title
{
color:#00589E;
}

chapter>title *, part>title *, appendix>title *
{
color:#00589E;
display: inline;

}

simplesect>title *, section>title * {
display: inline;
}

Interesting, I just noticed that the comment rule isn't working in structure view:

$COMMENT {
  display: none;
}

David

Reply

Products
Downloads
Support