|
Subject: Mapping a specific DTD to a generic DTD with XSL From: Francois_Deza@xxxxxxxxxx Date: Wed, 21 Apr 1999 21:07:49 +0100 |
I am looking for examples of using XSL to map a DTD to another DTD which is
is not the HTML DTD.
Basically, i have got a data model of which the types are instances of
another more generic data model.
The first one corresponds to a product specific order form (with tags
MyProduct, MyProductMyCharateristic) and the second one corresponds to a
generic order form
(with tags Product, ProductCharateristic).
MyProduct is an instance of Product so it has got a productID.
MyProduct has three charateristics MyProductMyCharateristic1,
MyProductMyCharateristic2 and MyProductMyCharateristic3.
MyProductMyCharateristic1 is an instance of ProductCharateristic so it has
got a productCharateristicID equal to prcar1.
MyProductMyCharateristic2 is an instance of ProductCharateristic so it has
got a productCharateristicID equal to prcar2.
MyProductMyCharateristic3 is an instance of ProductCharateristic so it has
got a productCharateristicID equal to prcar3.
The XSL contains those IDs (productID, productCharateristicID) as
Entities and makes
possible
the translation of
<MyProduct>
<MyProductMyCharateristic1 name "aname">
</MyProductMyCharateristic1>
<MyProductMyCharateristic2 number "anumber">
</MyProductMyCharateristic2>
<MyProductMyCharateristic3 date "adate">
</MyProductMyCharateristic3>
</MyProduct>
to
<Product productID "pr1">
<ProductCharateristic productCharateristicID "prcar1">
<Value type "string" value "aname" >
</Value >
</ProductCharateristic>
<ProductCharateristic productCharateristicID "prcar2">
<Value type "number" value "anumber" >
</Value >
</ProductCharateristic>
<ProductCharateristic productCharateristicID "prcar3">
<Value type "date" value "adate" >
</Value >
</ProductCharateristic>
</Product>
As you can see the semantic mapping is one-to-one.
Have you already done such a thing and if yes can you recommend approaches,
tools for producing and maintaining the XSL rules.
Francois
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: XSL:*?, David Carlisle | Thread | Now you know why FOP has been delay, James Tauber |
| XSL:*?, Matt MacKenzie | Date | Re: XSL:*?, David Carlisle |
| Month |