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

Design Question: XSLT Configurable

Subject: Design Question: XSLT Configurable
From: Matthias Müller <pymote@xxxxxxxx>
Date: Tue, 21 Jul 2009 08:33:27 +0000 (GMT)
 Design Question: XSLT Configurable
Hi there,

i work on a application that let the users configure it to their
needs using a certain file (a user-settings.xml)
during the years this file
has changed, so there exist different versions now. my idea is to transform
all of them to the newest version.
the configuration file is a very simple xml
file (max 2 levels), the changes are also moderate (create node, delete node,
rename node and merge content of nodes).
the thing is, i want to keep the
transformation expandable by only configuring what have changed from version
to version.
e.g. like that

-------------------------------------
<Versions>
<Version nr="0.3">
        <Actions>
            <RenameAction
fromElement="elementA" toElement="elementD"/>
        </Actions>
</Version>
    <Version nr="0.2">
        <Actions>
<MergeContentAction toElement="elementA" separator=" ">
<MergeFromElement name="elementB"/>
                <MergeFromElement
name="elementC"/>
            </MergeContentAction>
        </Actions>
</Version>
    <Version nr="0.1">
</Versions>
-------------------------------------

so, i only will have one transformation
file instead of a file for each version.

what about this approach? i think
that this is supposed to be a common issue, isn't it?

Thanks for your ideas,
Matthias

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.