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

Re: XML transformation based on parameters

Subject: Re: XML transformation based on parameters
From: Emiliano Pecis <emiliano.pecis@xxxxxxxxx>
Date: Thu, 16 Apr 2009 12:33:45 +0200
Re:  XML transformation based on parameters
Daivd,

with an external static file it works properly, but I need to pass the
xml stream at runtime... in this case what should I do?

:-/

e.


2009/4/16 David Carlisle <davidc@xxxxxxxxx>:
>
>
>> 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

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.