[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Combining multiple documents (WAS : xml & forms revisited)

Subject: Combining multiple documents (WAS : xml & forms revisited)
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Fri, 10 Mar 2000 12:01:45 +0100
xml multiple documents
Hi Paul

Paul Tchistopolskii wrote:
> 
> Hi Eric,
> 
> Very cool. Probably it is the best possible 'pure'
> and 'clean'  way to get the environment  passed to
> XSLT without dirty tricks.

Thanks :)

> PXSLServlet ( dirty trick by definition ) solves this
> problem in another way, attaching the environment
> variables into XML *source*  document.
> 
> That means  in the  stylesheet  we have  only
> <xsl:value-of select="/request/variable"/>
> or something like that.  ( It is flexible - S2X Template
> determines the actual names for 'request' and 'variable'. )
> 
> Of course, that's because in PXSLServlet's universe
> there is "S2X magician", responsiple for grabbing
> XML data from the outher space ( mostly
> SQL database), and  because environment  of http request
> is "yet-another-data-source" -  those data are pulled
> into source XML by S2X template and do not go to the
> stylesheet. "stylesheet is about processing, S2X template
> is about the dataflow ( XML-to-process )".
> 
> In the absence of S2X 'magician' there is no way to
> compose the desired source XML on the fly, so
> your solution is perfect from my point of view.
> 
> Just wanted to explain what I meant yesterday saying
> that  "in PXSLServlet,  XML is about the data and XSL is about
> the processing"
> 
> - in your universe some data are jumping into the text of stylesheet
> - in PXSLServlet universe - data are jumping into XML source, stylesheet
> assumes the data are already in the XML-document-to-be-processed
> ( the stylesheet tries to be 'ideal'  ;-)
> 
> My universe has a lot of other problems of course ;-) Also your  'jumping'
> of data into the stylesheet  is very compact - just a couple of lines.
> That means I realy don't think my universe is in any way 'better' than
> your's - just wanted to show some other point of view ( BTW, the PXSLServlet's
> tactics with the environment variables explained above is just a side-effect of
> SQL -> XML mapping).

I must be slow, but I am just beginning to understand that S2X can be
used for much more usage than SQL to XML mapping !

The <XML>fr front page (http://wmlfr.org) for instance is reading, in
addition to the index.xml page and the XSLT sheet, 7 XML pages (a site
and page layout xml document which is common to all the pages and 6 rss
document with the headlines of the 6 sections which are displayed).

This is more complex to explain than to implement and I'll publish all
this when I'll find some free time...

Let's say that it's done by applying the templates on the "site and page
layout" xml file which is containing pure XHTML elements plus specific
embedded elements whose templates are inserting the specific parts in
the page.

These specific parts are stored in the index.xml (specific) file and are
also containing XHTML elements with "call back elements" whose templates
are inserting the data from the rss files.

BTW, I am amazed by the speed with which XT is handling this complex
transformation involving so many files...

As an alternative, I could have included all these files directly into
the tree using external entities in index.xml.

I have done so for other projects, but, for various reasons, I find it
less flexible...

Would S2X be also able to combine all these files into a single XML tree
?

> I realy enjoyed  your code.

It was worth publishing then !
 
> Rgds.Paul.
> 
> >
> > It's not that simple with XSLT ;=)
> >
> > Having said this, you'll find on our web an example showing how one can,
> > with XT, handle part of the request context as a tree fragment.
> >
> > http://downloads.dyomedea.com/java/examples/xslservlet/result-tree/
> >
> > Hope this helps.
> >
> > Eric
> >
> > "Kari M. Scott" wrote:
> > >
> > > First, thanks to everyone who has patiently answered my newbie xml
> > > questions.
> > >
> > > Today's question concerns capturing form submit results in another xml
> > > file for another sql query.  More specifically, when I submit a form, I
> > > designate results.xml as the action.  In results.xml, however, I haven't a
> > > clue as to how I can grab the form values.  What I need is similar to this
> > > line in Perl:
> > >
> > > $VALUE = $in{'VALUE'};
> > >
> > > Any syntax examples would be greaty appreciated!
> > >
> > > Thanks,
> > > -Kari
> > >
> > > Kari M. Scott
> > > Berbee
> > > 5520 Research Park Drive
> > > Madison, WI  53711-5377
> > > kmscott@xxxxxxxxxx
> > > 608.288.3000 ext. 1223
> > > 608.298.1223 direct dial
> > > 608.288.3037 fax
> > >
> > > Berbee...putting the E in business
> > >
> > >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> > --
> > ------------------------------------------------------------------------
> > Eric van der Vlist                                              Dyomedea
> >
> > http://www.dyomedea.com                          http://www.ducotede.com
> > ------------------------------------------------------------------------
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
------------------------------------------------------------------------
Eric van der Vlist                                             Dyomedea
http://xmlfr.org         http://ducotede.com        http://dyomedea.com
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.