cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Spaeth <Jonathan.Spa...@networktelephone.net>
Subject RE: reading xml from pipeline into a flow script
Date Sat, 28 Jun 2003 20:27:15 GMT
One simple way of accomplishing this is to simply, define pipeline to
generate, transform, and serialize the xml.  Then, in the flowscript, simply
use the jaxp dom api to load the generated xml:

flow() {
	var document =
Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentB
uilder().build(http://uri-to-xml-file);

	...

	document.getDocumentElement();
	// it is now a dom
}


-----Original Message-----
From: Simon Price [mailto:simon.price@bristol.ac.uk] 
Sent: Saturday, June 28, 2003 3:25 PM
To: cocoon-users@xml.apache.org
Subject: reading xml from pipeline into a flow script

 From within a flow script, I would like to read (or pass in) xml 
generated by a series of pipeline xslt transformations.

Please could someone give me a pointer on how to do this?

Cheers

Simon

-------------------------------------------------------------------
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
Simon.Price@bristol.ac.uk
http://www.ilrt.bristol.ac.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message