|
List Info
Thread: retrieve-class-name only fetching the chapter's first section name
|
|
| retrieve-class-name only fetching the
chapter's first section name |

|
2007-06-08 05:31:23 |
Hi all -
I'd like for the current section name to appear in the
header.content,
so I've left this part of pagesetup.xsl unchanged:
<fo:retrieve-marker
retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
But oddly, only the name of the first sect1 in each chapter
appears in
the header throughout the entire chapter. In other words,
the header
doesn't contain the current section name, just the first
section name.
I know this template is being used since if I replace it
with a:
<xsl:apply-templates select="."
mode="titleabbrev.markup"/>
then the chapter title appears in the header. But has
anyone else
observed the behavior I'm seeing? I'm using DocBook
1.69.1-5.1 and
AltSoft XML2PDF.
Thanks,
Tom
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: retrieve-class-name only fetching
the chapter's first section name |

|
2007-06-08 06:02:43 |
I think you can use marker.section.level to control the
level of
sections that are displayed in a running header, Tom. See
Bob
Stayton's DocBook XSL book or check our the reference online
at
http://sagehill.net/docbookxsl/PrintHeaders.htm
l#RunningSections.
Ken
On 6/8/07, Tom Copeland <tom infoether.com> wrote:
> Hi all -
>
> I'd like for the current section name to appear in the
header.content,
> so I've left this part of pagesetup.xsl unchanged:
>
> <fo:retrieve-marker
retrieve-class-name="section.head.marker"
>
retrieve-position="first-including-carryover"
> retrieve-boundary="page-sequence"/>
>
> But oddly, only the name of the first sect1 in each
chapter appears in
> the header throughout the entire chapter. In other
words, the header
> doesn't contain the current section name, just the
first section name.
>
> I know this template is being used since if I replace
it with a:
>
> <xsl:apply-templates select="."
mode="titleabbrev.markup"/>
>
> then the chapter title appears in the header. But has
anyone else
> observed the behavior I'm seeing? I'm using DocBook
1.69.1-5.1 and
> AltSoft XML2PDF.
>
> Thanks,
>
> Tom
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: retrieve-class-name only fetching
the chapter's first section name |

|
2007-06-08 06:09:16 |
On Fri, 2007-06-08 at 07:02 -0400, Ken Morse wrote:
> I think you can use marker.section.level to control the
level of
> sections that are displayed in a running header, Tom.
See Bob
> Stayton's DocBook XSL book or check our the reference
online at
> http://sagehill.net/docbookxsl/PrintHeaders.htm
l#RunningSections.
Hi Ken -
Yup, I've got Bob's excellent book, and I've got
marker.section.level
set to "1" in my custom stylesheet layer. But the
only thing that
appears in the header is the title of the first sect1
element in each
chapter... very odd.
Thanks,
Tom
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: retrieve-class-name only fetching
the chapter's first section name |

|
2007-06-08 06:39:02 |
Hi Tom,
I think you need to set the number number higher to include
the
appropriate section level. From the 1.72.0 docs:
"The marker.section.level parameter controls the depth
of section
levels that may be displayed in running headers and footers.
For
example, if the value is 2 (the default), then titles from
sect1 and
sect2 or equivalent section elements are candidates for use
in running
headers and footers."
So I think if you wanted sect1, sect2 and sect3 to show, you
would use:
<xsl:param name="marker.section.level"
select="3"/>
Ken
On 6/8/07, Tom Copeland <tom infoether.com> wrote:
> Hi Ken -
>
> Yup, I've got Bob's excellent book, and I've got
marker.section.level
> set to "1" in my custom stylesheet layer.
But the only thing that
> appears in the header is the title of the first sect1
element in each
> chapter... very odd.
>
> Thanks,
>
> Tom
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: retrieve-class-name only fetching
the chapter's first section name |

|
2007-06-08 20:50:00 |
On Fri, 2007-06-08 at 07:39 -0400, Ken Morse wrote:
> Hi Tom,
>
> I think you need to set the number number higher to
include the
> appropriate section level. From the 1.72.0 docs:
>
> "The marker.section.level parameter controls the
depth of section
> levels that may be displayed in running headers and
footers. For
> example, if the value is 2 (the default), then titles
from sect1 and
> sect2 or equivalent section elements are candidates for
use in running
> headers and footers."
>
> So I think if you wanted sect1, sect2 and sect3 to
show, you would use:
>
> <xsl:param name="marker.section.level"
select="3"/>
Hi Ken -
Yup, I would expect setting marker.section.level to 3 to
show sect1/2/3
to show up in the header.content. But I'd expect that
setting it to 1
would show the _current_ section name in the header. What
I'm observing
now is that only the _first_ sect1 name is appearing in the
header
throughout the chapter, even though the chapter has four or
five sect1
elements.
But, it's not too bad, I can just use the chapter title in
the header,
so no problem... just wondered if anyone else had run across
this
before. For all I know it could be a bug in my FO->PDF
converter,
Yours,
Tom
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
[1-5]
|
|