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

Re: Reading the values of elements in a complex parame

Subject: Re: Reading the values of elements in a complex parameter
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 24 Sep 2004 11:25:14 +0100
reading complex xml
  -- Write the dynamic XML to a known document path.
  -- Include the path in the XSL.
  -- Call Xalan.
  -- Xalan imports, parses and uses the tree.

  Is this a normal and appropriate use of xsl:include?


xsl:include (and import) are just for including parts of the stylesheet.
I think you want document() which is for including XML documents at
run time. If you are (for example) running a local http server you can
arrange to include any dynamically generated content you want with
sonething like
select="document('http://localhost://cgi-bin/myscript?param1=a')
where the cgi-bin script myscript takes the parameter and returns
whatever xml needs returning. If you can generate the "dynamic" XMl
before XSLT starts you don't even need a server you can do as you
suggest above, just generate the XML in advance at a known location then 
select="document(file:///path/to/the/xml')"


David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.