Next in thread → Next in month →

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

From
Jirka Kosek <>
Date
2004-03-22T14:56:48+00:00
ID
Thread
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: 
   http://www.kosek.cz
Next in thread → Next in month →