[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] removing elements and attrs from <title>
Yes, I like the idea of no ids on titles. For the remarks in titles, I'll leave that to someone who knows relaxng better than I do, but maybe a schematron rule would be easier? Or if you are willing to preprocess the document before handing it off to LaTeX, you could just move any <remark>s to immediately after the titles they appear in. David > -----Original Message----- > From: Mike Maxwell [mailto:maxwell@umiacs.umd.edu] > Sent: Thursday, November 11, 2010 9:01 AM > To: Cramer, David W (David) > Cc: DocBook Apps ML > Subject: Re: [docbook-apps] removing elements and attrs from <title> > > On 11/11/2010 1:44 AM, Cramer, David W (David) wrote: > > Interesting idea about removing xml:id from titles. Try the > > following: ... > > > > That seems to work...not sure if it's the best/easiest way. > > Yes, that gets rid of the xml:id attr in titles. Thanks! > > > I think to remove remark you just add the following inside > > your<include>: > > > > <define name="db.remark"> <notAllowed/> </define> > > Sorry, I wasn't clear; I *only* want to remove <remark> from inside > <title>, whereas the above removes it everywhere. The problem is that > there is something about the <title> defn in DB5 that prevents any > changes to its content elements. Even the ff. minimalist defn triggers > the "interleave" error msg: > <define name="db.title"> > <element name="title"> > <text/> > </element> > </define> > > BTW, the reason I want to make these two changes has to do with our > processing to produce a PDF (what you call a "toolchain", I think). > Our > output method doesn't allow xrefs to titles (which is the only use > we're > making of xml:id). And it appears that the LaTeX macro I cribbed for > outputting <remark>s with a colored background (to make them easy to > see) goes into an infinite loop when the <remark> (or the LaTeX > \comment{} command that this gets translated into) is inside a title > (\title{}). Maybe I'll go back and try to figure out why the LaTeX > macro does that, instead of prohibiting <remark>s inside <title>s... > -- > Mike Maxwell
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]