This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] profiling docbook-like documents


Justus H. Piater wrote:

I tried to do two-step profiling using profile.xsl from the 1.65.1
stylesheets, and it generated a file of type "-//OASIS//DTD DocBook
XML V4.2//EN".

However, the source file is of a docbook-slides type, with all kinds
of extra stuff inside the DOCTYPE declaration.

Would it be possible to write profile.xsl such that the original
doctype is preserved? Or to allow the user to specify the doctype,
including parameter entities? (Or no doctype at all, greetings from
Relax-NG.)

This is not possible with XSLT 1.0. But you can create customization of profile.xsl which will overwrite identifiers. Something like:


<xsl:stylesheet ...>

<xsl:import href="profile.xsl"/>

<xsl:output doctype-public="desired FPI"
            doctype-system="desired system identifier URI"/>

</xsl:stylesheet>

Jirka

--
-----------------------------------------------------------------
  Jirka Kosek  	
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]