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] Customizing html/head/title in chunked output


Hi David,
I think that is a good idea.  Go for it.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: "David Cramer" <david@thingbag.net>
To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, June 19, 2012 7:37 AM
Subject: [docbook-apps] Customizing html/head/title in chunked output


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,
I needed to modify the content of html/head/title in chunked output
and ended up overriding the named template head.content. It would be
nice not to have to override such a big template to modify the content
of the <title> of each html page. Should we instead do a call-template
and provide a named template so the user can more easily customize this?

I notice that the content of the title ultimately comes from
<xsl:apply-templates select="$node"
mode="object.title.markup.textonly"/>, so I could also override a
template matching * in the mode object.title.markup.textonly, but I
suspect that would have undesired side effects beyond the content of
html/head/title.

Btw., my modification is to add the book title to the html/head/title.
When you host several chunked books on a single domain, some of which
contain sections with the same title, then the Google search results
end up showing several hits in that domain with the same title. Adding
the book/document title to each chunk's html/head/title provides more
context in the Google results.

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP4I6+AAoJEMHeSXG7afUhkMkIAIFSH8RFvrOP72h91IiHLgRT
HPhVawSmyWzPEHgb7tnPhPpMj3VPcqijox1gZrTPjQLWo9LZ+OB7WQ1D+gS6P51z
1ca0FFT1vJaHMuKDrTpRtg+mRfv56DdJl/KyyuCap1QBbKArK4OAiHd+ZQa0xm4t
hqBI9Zz+6Mwm3zemTUTHrJhu6ZLrrjVUYmodVkN2oW84nQLuXwMuMSkK1F7QDjYf
0eO2jporlsoiya56aDvGU4SUPAUyemK4n0kUxNEFS575YlrsBJtrcv7ngEq5Bsiq
TdPY9CcJ8iuuDGwd+vuJ1aslv+20RzIT23c8kBpPLd8DUzVzUP3aovBxEuCgETQ=
=q/ni
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





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