RE: [docbook-apps] DTD customizations for XIncludes: How to add XIncludes support for row in tbody?

From
Jeff Beal <>
Date
2003-07-08T12:42:41+00:00
ID
Thread
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:]
> Sent: Monday, July 07, 2003 11:49 AM
> To: 
> 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: 
> For additional commands, e-mail: 
> 
> 
> 
>