I have asked the same question of HTML specs. Why can't I specify
<input type="number" name="field" size="9" decimal = "2" mask="$x,xxx,xx0.00">
And the browser show $0.00 on the form or $123.45 if it has a value and the browser only allows numbers to be entered if the type is "number"
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: Wednesday, January 25, 2012 1:29 PM
To: RPG programming on the IBM i / System i
Subject: Re: XMLSERVICE
From: Brian May
That is exactly the point. XMLSERVICE is a SIMPLE, FLEXIBLE, and
GENERIC interface to all your IBM i applications.
Good point. Just one example of the simplicity and clarity of the interface is the notation for defining data types for input parameters:
<data var="price" type="10P2">12345.67</data>
where the type attribute maps directly to RPG data types, 10 digits, 2 decimal positions, packed format.
And it's not just that you can denote traditional RPG data types such as "packed", but the fact that you can use simple notion such as "10P2" to tell XMLSERVICE that the parameter has 10 digits, 2 decimals, and packed format.
Why didn't the creators of the XML Schema specification think of coming up with a simple way of defining data type, length, and decimal positions for XML elements and attributes? They just left it with notion like "xs:unsignedInt". What if they had come up with "5U0", "10U0", or "20U0" to define 2-byte, 4-byte, and 8-byte integers? That would just make too much sense!
-Nathan
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.