Subject: Re: [xsl] XML transformation based on parameters From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 16 Apr 2009 11:25:24 +0100 |
> is: is there a way to encode this xml file in some way > and see it as a normal xpath variable? no doubt there will be, but the simplest way may well be but if you do this: document($params)/ then you avoid the need to build teh document tree externally and pass it i, you just need "parsms" to be a string with a value like "myfile.xml" then the xslt document function will handle parsing teh xml and returning a node set. Get it working using a fixed string first document('myfile.xml')/query-params/param/@name" then if you need to make the file name a global parameter do that afterwards. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XML transformation based , Emiliano Pecis | Thread | Re: [xsl] XML transformation based , Emiliano Pecis |
Re: [xsl] XML transformation based , Emiliano Pecis | Date | Re: [xsl] XML transformation based , Emiliano Pecis |
Month |