[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon)
OK, I guess I was wrong to say that Xerces "completely" supports XInclude. I'm using Saxon 6.5.3 with Xerces 2.7.0 and it handles xi:include with xpointer fine when I use shorthand pointers to a DTD-determined ID. For example, I have the following chapter in one of my books and Saxon-Xerces has no trouble parsing and transforming the content. As you can see, the chapter has xi:include elements with xpointer attributes. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!ENTITY % VoceraEntities SYSTEM "file:///shared/rsrc/text/vocera.ent" > %VoceraEntities; ]> <chapter id="CSIPARef"> <title>&BookCSIPA;</title> <xi:include href="../cg/ChangingIPAddress.xml" xpointer="ChangeIPIntroFirst" xmlns:xi="http://www.w3.org/2001/XInclude" /> <xi:include href="../cg/ChangingIPAddress.xml" xpointer="ChangeIPEnvironment" xmlns:xi="http://www.w3.org/2001/XInclude" /> <xi:include href="../cg/ChangingIPAddress.xml" xpointer="ChangeIPSteps" xmlns:xi="http://www.w3.org/2001/XInclude" /> </chapter> For more info on using XInclude with Xerces, go here: http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-8 Regards, Jeff Powanda -----Original Message----- From: Dave Pawson [mailto:davep@dpawson.co.uk] Sent: Tuesday, June 12, 2007 5:19 AM To: Camille Bégnis Cc: apps docbook Subject: Re: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon) Camille Bégnis wrote: > Hi all, > > funny I'm struggling with similar issue. > > I did set up saxon to use Xerces 2.9.0 and while full inclusions like > > <xi:include href="Inserted.xml"/> > > works, referencing an id with > > <xi:include href="Inserted.xml" xpointer="para"/> > > doesn't work: > > ------------------- I don't think the Xerces parser fully implements the xpointer stuff Camille. Simple xincludes yes, but not partial includes. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]