Proposed FAQ in DocBook

Joshua Daniel Franklin joshuadfranklin@gmail.com
Mon Aug 29 23:55:00 GMT 2005


On 8/29/05, Igor Pechtchanski  wrote:
> > Well, I didn't figure out how to do it in DocBook, but it was no
> > problem with sed:
> >
> > sed -i 's;</a><a name="id[0-9]*"></a>;</a>;g' faq/faq*.html
> 
> BTW, I don't think I saw the "id\d+" form of reference ever used in the
> FAQ, but just in case, to fully preserve the prior functionality (i.e.,
> allow references to those anchor forms), you could use something like
> 
> sed -i 's;<a name="\(.*\)"></a><a name="\(id[0-9]*\)"></a>;<a name="\1" id="\2"></a>;g' faq/faq*.html

Yeah, by default DocBook automatically generates the id* anchors, but it's only 
supposed to when you don't define id yourself, so I think this is a
bug with the
qandaentry processing code. I didn't need them so I discarded them on purpose.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list