XML Document Routing

Subject: XML Document Routing
From: Brian Vandewettering <bmv@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Jan 1999 15:37:47 -0800
I'd like to use XSL to facilitate the routing of my XML documents to various
destinations.  The pattern matching capabilities of XSL seem to be ideal for
my requirement, allowing me to construct a hierarchy of rules which
potentially can use any part of the data stream to determine the appropriate
list of destinations.  

For example, the following document representing an invoice,

<invoice><customer>..... <state>DC</state> ...</customer> ....</invoice>

could be annotated with custom processing instructions as below.

<render device="xxx"><invoice>....</invoice></render>

I'm curious if this is an appropriate use of XSL since I am replicating MOST
of the xml document.  In trying to implement this in XSL I've not found a
simple way to clone the DOM tree.  Suggestions?

-Brian <<small.xml>> 

Attachment: small.xml
Description: Binary data

Current Thread