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

Re: Merging multiple documents and combining their nod

Subject: Re: Merging multiple documents and combining their nodes
From: "Mark Peters" <flickrmeister@xxxxxxxxx>
Date: Wed, 13 Jun 2007 12:10:03 -0400
Re:  Merging multiple documents and combining their nod
Thanks David.

What name-space is used for exslt:node-set?  I'm trying the following,
as described on http://www.exslt.org/howto.html, but Xalan throws the
error, "Prefix must resolve to a namespace: exslt."


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/common">

Thanks,
Mark


On 6/13/07, David Carlisle <davidc@xxxxxxxxx> wrote:

> My team's currently limited to XSLT 1.0,


in that case I'd do it in two passes, first pull in all the elements
into one tree:

<xsl:variable name="temp">
<components>
 <xsl:copy-of
select="document(document('filenames_file.xml')/files/file)/components/component"/>
</components>
</xsl:variable>

then use exslt:node-set so you can apply templates to that to do the
grouping (eg muenchian grouping using keys as described in the faq or
jeni's site. this is much easier now that all the nodes to be grouped
are siblings of each other.

<components>
<xsl:for-each select="exslt:node-set($temp)/components/component[.....
....
</xsl:for-each>
</components>

David

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.