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: [docbook-apps] How to embed XML transforms into Docbook


On Sat, 2005-01-01 at 14:57 -0800, Jim Kring wrote:
> Hello,
> 
> I am fairly new to Docbook and XML, so thanks for your patience.  I have
> what is probably a trivial question:
> 
> How can I embed XML content into a Docbook from an XML file that contains
> non-Docbook entities?
What do you mean by entity? An external XML instance, or character
entities?
(Assume former from later comments)

> 
> I have created an XSL file that defines a transform of the XML file's
> content into a valid Docbook entity.

Why not run that first, then include them as docbook content?

>   Can I use an ENTITY declaration (or
> another mechanism) in my Docbook file that would embed the transformed
> content of the XML file by referencing the XML and the XSL file?  I would
> like to do this dynamically, without having to create a file containing the
> transformed XML.

OK, I don't follow the logic of that, unless its re-use, but if that's
the need;
nonDBFile1.xml
xslt takes it to DBFile1.xml

simply include the latter, then as part of your processing chain
generate it prior to processing as docbook.

> 
> The only examples I could find of dynamic transformation of XML, were
> transforms to XHTML by a web browser by adding a stylesheet reference in the
> XML file, itself.  In my case, the XML file does not "know" that it is going
> to be transformed into a Docbook entity; but rather, the Docbook knows that
> it wants to transform an XML file into a Docbook entity using a stylesheet.

Your logic escapes me Jim,
HTH,



-- 
Regards, 

Dave Pawson
XSLT + Docbook FAQ
http://www.dpawson.co.uk


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