Subject: Re: [xsl] merging xml's using XSLT, merge.xslt|
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 26 Sep 2007 09:48:28 +0200
Hi,No problem. Sometimes it is good to wait a while and see whether or not your message shows on the list. Also, you can start subsequent messages with something like "new try, perhaps it is a copy, but the first gave me an error" or something like that.
I'm sorry for posting the message several times. I got mailer-daemon's
whenever I post it. something wrong with my message content type
----> Sorry. I dont want to use the command line.
-----> I'm now writing a cpp program using libxslt api's over libxml api's. I have the pointer to the dom tree for "merge.xslt" and another dom tree for "merge.xml". Using these api's I could apply the xslt on the xml.
But the content of the merge.xml is, which merge.xslt needs, is the 2 files which needs to be merged.
Instead, I would like to pass the DOM trees for these 2 files for
applying merge.xslt on it.
---> so, otherwise how do I merge several xml files using the xslt library api's in cpp. And is there any examples can you send me, which would read the document URI's and use it for merging xml's.
Thanks for helping this far and trying to understand my problem.
Thanks a lot.
<mergable-docs base-uri="file:///c:/temp/"> <doc uri="my-relative-uri.xml" /> <doc uri="my-relative-uri-2.xml" /> </mergable>
<xsl:template match="/" > <xsl:variable name="base-uri" select="$mergethese/mergable/@base-uri" /> <xsl:for-each select="$mergethese/mergable/doc"> <xsl:apply-templates select="document(concat($base-uri, @uri))" /> </xsl:for-each> </xsl:template>
<xsl:template match="somenode-from-mergabledoc" > ...... </
HTH, Cheers, -- Abel Braaksma