[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: merging xml's using XSLT, merge.xslt
Hi Senthil,
[Why did you send this message four times (probably I received it four times because you also send it to my personal account)? And why did you send it my personal account? Just to the list would be enough, I'm there. And unless for compelling reasons, please don't address me personally but use the public list. I'll read it, really.] Anyway, I looked up the history, and I am not sure what the problem is. It seemed that, in defiance of the subject line and your comments, you want to give the dom tree, or, a dom document from the command line, which I showed you how. Here's the latest we talked about (which you didn't answer, btw): and...But I wanted to know more about "passing parameters to XSLT". I'm merging 2 or more XML's and for which I specify the static file names. Instead I wanted to give the DOM tree as input to the XSLT. The harder way is by using the API. I don't know in what context you are using libxslt, but when you want to extend the system, you can simply use the API. Probably not so simple, depends on how handy you are with Java or c++. some info can be found here: http://xmlsoft.org/XSLT/html/libxslt-xsltInternals.html and some other info can be found here: http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html#parameters In other words: I have no idea why you are having troubles. The most-used pattern for processing multiple input documents (i.e., for merging, sorting or whatever) is to use a catalog file, which any XSLT can read. Then, from this catalog file, which should be in XML, you can read the document URIs which you can process further using the document() function. If you use PHP or whatever other language, consider creating a Java bridge to call into Saxon's Java interface. This would be easier in Python or in Ruby, if I remember correctly. How to use the API of Saxon and how to pass on nodes as arguments is extensively described in the Saxon manual HTH, Cheers, -- Abel Braaksma Senthil Nathan wrote: Hi Abel, I'm coming back to this thread after sometime, during which I couldn't find a solution in libxslt forums. They said its not possible. But you were saying about using that.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|