OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Any way to keep <!DOCTYPE...> definition int o utput of XSLT transformation?

On Fri, Jul 25, 2003 at 03:32:16PM -0400, Taro Ikai wrote:
> What I want is to write out <!ENTITY...> declarations within a <!DOCTYPE 
> declaration. 
> For example:
> <!DOCTYPE chapter SYSTEM "c:/docbook/4.2/docbookx.dtd" [
>  <!ENTITY % global_entities SYSTEM "c:/mydoc/myentities.ent">
>   %global_entities;
>  ]>
> So according's Jeff's suggestion, the basic idea should be to write:
> <xsl:output method="xml" doctype-system="<!DOCTYPE chapter SYSTEM 
> "c:/docbook/4.2/docbookx.dtd" [<!ENTITY % global_entities SYSTEM 
> "c:/mydoc/myentities.ent">%global_entities;]>"</xsl:output>

  No this is not legal. This will not work and if this work I may well
fix this in any future version of xsltproc. You cannot generate an internal
subset with XSLT, so don't try to do it. Use another tool or postprocess the


Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]