Subject: Re: [xsl] merging xml's using XSLT, merge.xslt From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 14 Sep 2007 17:02:15 +0200 |
List archives libxslt: http://mail.gnome.org/archives/xslt/ FAQ: http://xmlsoft.org/XSLT/FAQ.html Command line: http://xmlsoft.org/XSLT/xsltproc2.html
Cheers, -- Abel Braaksma
But, I'm using libxslt. So any samples like how to pass the DOM trees as parameters to stylesheet in libxslt??
Thanks Senthil
On 9/14/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
Senthil Nathan wrote:
If you can use Saxon, it goes like this (from the documentation pages):Hi Michael, How about the other option of passing DOM's as parameters to stylesheet.
Any sample of doing the same would be helpful.You could supply the two input DOMs to the stylesheet as parameters, and replace the calls on document() by references to the parameters.
A param preceded by a leading plus sign (+) is interpreted as a filename or directory. The content of the file is parsed as XML, and the resulting document node is passed to the stylesheet as the value of the parameter. If the parameter value is a directory, then all the immediately contained files are parsed as XML, and the resulting sequence of document nodes is passed as the value of the parameter. For example, +lookup=lookup.xml sets the value of the stylesheet parameter lookup to the document node at the root of the tree representing the parsed contents of the file lookup.xml.
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] merging xml's using XSLT,, Senthil Nathan | Thread | Re: [xsl] merging xml's using XSLT,, Senthil Nathan |
Re: [xsl] [XSL] XSL Browser Integra, M. David Peterson | Date | Re: [xsl] merging xml's using XSLT,, Senthil Nathan |
Month |