[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Output order of elements contained in <personname>
On Wed, 28 Oct 2015 09:19:49 +0100 Martin Doucha <next_ghost@quick.cz> wrote: > Dne 28.10.2015 v 03:16 Karl O. Pinc napsal(a): > > Elements contained in <personname> can come in any order within a > > document but they are not output in the order input. Right now they > > are always output in the order <honorific> <firstname> <surname> > > <lineage>. (At least from inside an <author> element.) > > > > This fixed output order is not suitable in the general case. > > Better would be to output in the order input, as with para. > > The template for <personname> in XSL stylesheet package indeed > processes subelements in fixed order. To process them in document > order instead, simply put the following template definition into your > customized XSL file (assuming the usual namespace aliases for XSL and > DocBook): > > <xsl:template match="d:personname"> > <xsl:apply-templates/> > </xsl:template> Thanks. Why isn't this the default? What is gained by altering document order? Karl <kop@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]