RE: [xsl] "normalizing" an XML document

Subject: RE: [xsl] "normalizing" an XML document
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 30 Sep 2004 08:05:40 +0300
Hi,

> I have an XML document X1 that conforms to schema M1,
> where M1 is the 'union' of schemas S1 and S2, each of
> which contains multiple entities.  I need to split
> the contents of X1 into two XML documents D1 and D2,
> where D1 conforms to S1 and D2 conforms to S2.  This
> problem is further complicated by the fact that S1
> and S2 (and hence M1) also contain many namespaces.
>
> I would appreciate a rudimentary solution, such as
> one in which S1 and S2 define a single complex type
> that contains elements with different namespaces.

Do you need a solution where a stylesheet ST1 processes S1 and S2 and
generates stylesheets SG1 and SG2, which can extract the documents D1 and D2
from M1, or do you just want a stylesheet that hard codes the logic? Coming up
with even a rudimentatry solution without seeing your schemas is more of less
impossible, so if you show us your schemas and the solution attempt you've got
so far, maybe people can offer specific solution possibilities.

Cheers,

Jarno - Real Synthetic Audio 2004-08-03

Current Thread