xsl-list
[Top] [All Lists]

Re: [xsl] Re: Demonstration web browser environment for UBL invoice form filling [XSL List]

2014-04-21 13:44:40
I like what you've done so far on this.

From your XSLT, I can see how you're using the c:seralize mode for
serializing the $doc variable. You're not trying the built-in browser
XML DOM serializer, a good thing because, as you've probably found
already, some bowsers have rather flakey DOM serialization, especially
with regard to namespaces - probably because HTML is their mainstay.

If you later refactor serialization to allow an easier asynchronous
interface for posting the XML to a back-end system (perhaps using the
JavaScript FormData API), you might find a JavaScript XML DOM
serializer function I wrote useful - I posted details on this today on
the Saxon-CE forum at:

https://saxonica.plan.io/boards/1/topics/5915

Phil

On Tue, Apr 1, 2014 at 6:02 PM, G. Ken Holman
<gkholman(_at_)cranesoftwrights(_dot_)com> wrote:
At 2014-04-01 09:48 -0700, Martin Holmes wrote:

Very neat! It does allow me to enter 2014-02-30 for the date, though.


There is a lot of validation to be done, and to underscore that the
demonstration regards the interaction and not the data validity, I do none
at all.

My goal in writing this was to learn about Saxon-CE.  For members of this
list I would think stuff like validation and appearance would be pedestrian
or quotidian concerns.  Which certainly would not be the case were I
creating a production system.

Now I know what I would do should I need to create a production system.


. . . . . . . Ken


--
Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/ |
G. Ken Holman                   
mailto:gkholman(_at_)CraneSoftwrights(_dot_)com |
Google+ profile:      http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |


---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>