× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.