Yes, please file a feature request on DocBook SourceForge with any details you can provide. Thanks.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


----- Original Message ----- From: "Marco" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 22, 2008 1:10 PM
Subject: [docbook-apps] Re: XInclude in sitemap problem


Mauritz Jeanson <mj <at> johanneberg.com> writes:


> -----Original Message-----
> From: mercuron <at> gmx.ch
>
> I'm using Xalan-2.7.0 with Xerces-2.7.1 and docbook-xsl-1.73.2.

[...]

> Is there any way to force the docbook stylesheets not to use
> named entities for the target db?
> Are there any other tricks?

With Xalan, you can use the xalan:entities extension attribute on the
xsl:output element. To completely disable output of entity references,
create an empty file and let the attribute value point to that file:

<xsl:output encoding="UTF-8"
            xalan:entities="somefile"/>

See http://xml.apache.org/xalan-j/usagepatterns.html#outputprops.

/MJ


Mauritz,

Nice solution. Thanks.
The advantage of my solution is that the generated db can be validated against the targetdatabase.dtd. Any tags that appear in <ttl> or <xreftext> as well as any named entities will be put in a CDATA section and are therefore treated as
pure text.

I wonder if there is any chance to get this into one of the next builds (that
would simplify my customization layer a bit).
Does anybody think its worth filing a report?

Cheers,
Marco


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to