Subject: Re: [xsl] Reading the values of elements in a complex parameter From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 24 Sep 2004 11:25:14 +0100 |
-- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Reading the values of ele, David Adams | Thread | Re: [xsl] Reading the values of ele, David Adams |
RE: [xsl] Using a pre-processor for, Michael Kay | Date | Re: [xsl] Reading the values of ele, David Adams |
Month |