[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] DTD customizations for XIncludes: How to add XIncludes support for row in tbody?
Thanks, this works, but with some strange effects for my writers who use XXE: for some reason when I overrule the parameter entity XXE offers them the possibility to choose this option, but when I re-define the element XXE accepts it as a valid option and works fine when cutting and pasting this element, but they do not see the option when they look for possibilities (Ex. What can I insert after row?). Anyway, thanks for the fast response, it was very helpfull. Paul > -----Original Message----- > From: Jeff Beal [mailto:jeff.beal@ansys.com] > Sent: Tuesday, July 08, 2003 2:59 PM > To: Stubbe Paul; docbook-apps@lists.oasis-open.org > Subject: RE: [docbook-apps] DTD customizations for XIncludes: > How to add > XIncludes support for row in tbody? > > > I think you can just re-define the tbody element in your > local subset as > follows: > > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook 4.2//EN" > "http://www.oasis-open.org ... " [ > <!ELEMENT tbody (row | xi:include)+> > ]> > > I've never done this to re-define elements, but I think it will work. > > Jeff > > > -----Original Message----- > > From: Stubbe Paul [mailto:paul.stubbe@mil.be] > > Sent: Monday, July 07, 2003 11:49 AM > > To: docbook-apps@lists.oasis-open.org > > Subject: [docbook-apps] DTD customizations for XIncludes: How to add > > XIncludes support for row in tbody? > > > > > > I try to adapt the dtd based on > > http://www.sagehill.net/docbookxsl/ValidXinclude.html. > > > > I'am a small scale docbook user with an xsl customization > > layer but I have no experience customizing the dtd. > > > > I'm responsible for the publishing proces and my writers are > > reusing rows in different tables. > > > > I got the publishing proces to work based on: > > <tbody> > > <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" > > href="reusefile.xml#xpointer(//table[@id='reuseID']/tgroup/tbo > > dy/*)" /> > > <row> > > ... > > </row> > > </tbody> > > > > Is there a "right" or better way to reuse row-level information? > > > > But I do this in an ugly way by preprocessing the content > > file with ant and regular expressions. <row > role="reuse">reuseID</row> > > This preprocessing-step I would like te eliminate. > > > > > > So what I think needs to be done is to change the dtd so that > > an editor accepts and proposes the xi:include within tbody. > > > > The problem I have is that I do not find a parameter entity > > like "local.tbody. .." that I can overrule. > > > > In what direction should I look for a solution? > > > > Thanks, > > > > Paul > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > docbook-apps-unsubscribe@lists.oasis-open.org > > For additional commands, e-mail: > > docbook-apps-help@lists.oasis-open.org > > > > > > > > --------------------------------------------------------------------- > 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]