[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: RE: DOCBOOK-APPS: Re: condition attribute + XSL + doctype declara tion
If you're using saxon and don't mind using extensions, he's got saxon:doctype and dtd:entity elements that could help: http://saxon.sourceforge.net/saxon6.5.1/extensions.html#saxon:doctype David > -----Original Message----- > From: Jirka Kosek [mailto:jirka@kosek.cz] > Sent: Friday, February 15, 2002 4:12 AM > To: Bradford, Denis > Cc: docbook-apps@lists.oasis-open.org > Subject: Re: DOCBOOK-APPS: 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 >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC