On Wednesday 10 April 2002 10:40, Geoff wrote: > I've joined the AxKit supporters group today, got mod_perl installed got > AxKit installed and got the demos working thanks to the fantastice & easy > step by step guides.. > > - I have a flat file which has a specific type of layout. > - I'm converting this flat file into XML. > - I'm also using some of the data to use with ESQL to generate some more > data. > > <problem> > - Is it possible to combine the 2 xml documents and daisy chain them > through XSLT and output a nice new XML > </problem> > > I've read up all day and I've seen numerous conversion of XML->HTML etc, > but not XML->XML as such... > > does anyone have a very simple proof of concept on this please? > > many thanks > > Geoff
Well, there is nothing specific to using XSLT to generate XML as opposed to HTML, except look at the <xsl:output/> tag, which can be used to control details of the conversion, generally you want to use <xsl:output method="xml"/> if you will further process the data. There are a variety of methods for combining data. One possibility would be to create a provider module that merges your database info and your other data and hands that off to AxKit as a single document. You can actually just use the Filter provider and build a little mod_perl script to do it. Another possibility is to use the document() function in XSLT. I'd recommend getting a good up-to-date reference on XSLT and checking out that function. It can be very useful for this sort of thing. Basically it lets you process nodes from an arbitrary XML source as part of the processing of your source document. This lets you merge nodes from 2 or more sources together in arbitrary ways. Micheal Kay's book "XSLT" by Wrox Press has a pretty good explanation of how it can be used. So, I guess the basic answer to your question is, its pretty easy! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
