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

Re: How to declaratively describe a mapping that invol

Subject: Re: How to declaratively describe a mapping that involves breaking a string apart and reassembling the parts with an additional symbol?
From: "Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Mar 2024 06:45:14 -0000
Re:  How to declaratively describe a mapping that invol
Hi Roger,

On Tue, Mar 12, 2024 at 6:51b/PM Roger L Costello costello@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

I do not know how to declaratively describe the other part of the mapping
> -- map dddd to ddd.d (where d = digit)
>
> How do I declaratively describe this mapping?
>

Perhaps, one of the way to specify above mentioned kind of XML document src
to target formats mapping, may be like following,

<digitStrMapping minNoOfDigits="1" maxNoOfDigits="5">
    <old>
       <decimalPosition>NA</decimalPosition>
    </old>
    <new>
        <decimalPosition towardsRight="true">1</decimalPosition>
    </new>
</digitStrMapping>

An XSLT stylesheet then needs to read the above mentioned XML mapping
specification, to perform its XSL transformation tasks.

I definitely think, that other XML mapping specification formats for
this requirement can be thought about.


--
Regards,
Mukul Gandhi

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.