maurizio codogno wrote:
> I would like to highlight some new citations I added to a collection
> I made.
> My first idea had been to add the attribute role="new", and indeed it
> works; but then I thought about revisionflag, which seemed the right
> tool. Unfortunately it does not seem to work, but the output is quite
> odd (this is why I am asking here, and not in a group about DocBook)
>
> I wrapped my quotation with <phrase revisionflag="added"> (it's
> the second one in the example I am attaching), and then in
> mydocbook.xxe I added
>
> <parameter name="show.revisionflag">1</parameter>
> in the section
> <transform stylesheet="xsl/html/chunk.xsl"
> file="__doc.xml" to="__doc.html" >
>
> The result is that there is a <span> without any attribute
> surrounding the phrase, and this means it is useless.
> I have tried to have a local stylesheet changebars.xsl (which calls
> the standard one) but with no result.
>
> Any suggestion? (I am still using v2.9, btw)
>
> ciao, .mau.
>
> (the output is shown at http://xmau.com/scra/index.html ; the input is
> at http://xmau.com/scra/example.xml)
>
>
> == changebars.xsl ==
>
> <?xml version="1.0" encoding="US-ASCII"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:exsl="http://exslt.org/common"
> xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude
> -result-prefixes="exsl">
>
> <xsl:import href="xxe-config:docbook/xsl/html/changebars.xsl"/>
> <xsl:import href="xxe-config:docbook/xsl/html/chunk.xsl"/>
>
> </xsl:stylesheet>
--> We have no experience of styling elements marked using attribute
"revisionflag". I hope that another user of this mailing list will be
able to answer your questions.
--> If you have a mydocbook.xxe, it must contain something like this:
---
.
.
.
<property name="docb.toHTML.transform"
url="true">mydocbook.xsl</property>
<parameterGroup name="docb.toHTML.transformParameters">
<parameter name="show.revisionflag">1</parameter>
</parameterGroup>
.
.
.
---
where mydocbook.xsl (a file found in the same directory as
mydocbook.xxe) looks like this:
---
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon">
<xsl:import href="xxe-config:docbook/xsl/html/chunk.xsl"/>
.
.
.
YOUR ADVANCED CUSTOMIZATIONS HERE
.
.
.
</xsl:stylesheet>
---
Note that what is described above is a way to customize the generation
of *multi-page* HTML. This will have no effect at all if you generate
single page HTML.