OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Cross references starting with lowercase letters


I don't know of a way to do this automatically, because the XSLT processor
does not parse sentences.  The string handling capabilities of XSLT 1.0 are
pretty primitive since it doesn't have regular expressions.

You could do it for each xref instance that needs it by adding an xrefstyle
attribute, using a named style whose gentext template you define in your
stylesheet.  See the section on "Using a named xrefstyle" in:

http://www.sagehill.net/docbookxsl/CustomXrefs.html#Xrefstyle

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Joachim Ziegler" <ziegler@mpi-sb.mpg.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, November 03, 2004 2:09 AM
Subject: [docbook-apps] Cross references starting with lowercase letters


> Hello list,
>
> is there a chance to tweak the stylesheets so that when I put a cross
> reference in the middle of a sentence the generated xref text does *not*
> start with a capital letter.
>
> For example, a typical situation for the generated text is the following:
>
> "As we have seen in ***S***ection 2.3.1, the busy beaver function is
> uncomputable."
>
> What I like to have is
>
> "As we have seen in ***s***ection 2.3.1, the busy beaver function is
> uncomputable."
>
> Or is there a convention which says that such cross references always
> have to start with a capital letter, maybe based on the difficulty for
> the stylesheets to distinguish between the start and the interior of a
> sentence?
>
> Thank you in advance,
> Joachim
>
>
>
> -- 
> Joachim Ziegler                       Stuhlsatzenhausweg 85
> Max-Planck-Institut für Informatik    66123 Saarbrücken, Germany
> Email: ziegler@mpi-sb.mpg.de          Tel.: (+49) 0681 9325-127
> "I never wanted to be a computer scientist. I wanted to be... a
lumberjack!"
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]