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: Re: condition attribute + XSL + doctype declara tion


"Bradford, Denis" wrote:

> That takes care of the DTD declaration, but I'm losing everything else in
> the subset, too!  Here's before and after running profile.xsl:
> 
> source.xml
> ----------
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>  "docbookx.dtd" [
> <!ENTITY comparingxml SYSTEM "comparingxml.xml">
> <!ENTITY usingxdm SYSTEM "usingxdm.xml">
> <!ENTITY glossary SYSTEM "xmldiffmrg_gloss.xml">
> <!ENTITY xdm-diffwin1 SYSTEM "xdm-diffwin1.gif" NDATA GIF>
> ]>
> <book>
>   ...
> 
> profiled.xml
> ------------
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE book
>   PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd">
> <book print.status="draft">
>   ...

This is not problem for text entities as they are correctly substitued
during profiling transformation. But binary entity (NDATA) is problem,
as XSLT doesn't have access to such declaration. Probably easiest
workaround will be using fileref instead entityref for images.

				Jirka

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


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