W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

Réf. : Re: [Schematron-love-in] the best solution

From: Othman Haddad <ohaddad@neomalogic.com>
Date: Tue, 25 Jun 2002 10:39:03 -0400 (EDT)
Message-Id: <3D188041.000048.01256@neomads2>
To: "van der vlist" <vdv@dyomedea.com>, "xmlschema dev" <xmlschema-dev@w3.org>, "schematron mailing list" <schematron-love-in@lists.sourceforge.net>, <SILBERFR@CNRF.NAVY.MIL>
i don't see your architecture very well!
>>How do you write an XML document on a browser, anyway?
i'm sorry about the sentence, i meant i write the data that will go in the
xml document.

>>In my application the date comes from a form, which results in a servlet
>>request
>>object, not an XML file. The servelet has to create the XML file from the
>>servlet request object, so the same servlet can then call for validation
ok but what i need is to validate the data against the Schema W3C and
Schematron before sending it to the server. i think if i understood your
idea the servlet call for validation but using the network, no?
the problem is that i don't want to use the network except if the data
verifies all the constraints..

thank you

-------Message original-------

De : Mr Frank Silbermann
Date : mardi 25 juin 2002 16:21:50
A : erobertsson@allette.com.au; vdv@dyomedea.com; schematron-love-in@lists
sourceforge.net; xpipe-users@lists.sourceforge.net; ohaddad@neomalogic.com;
Michael.Kay@softwareag.com; xmlschema-dev@w3.org
Sujet : Re: [Schematron-love-in] the best solution

>>> "Othman Haddad" <ohaddad@neomalogic.com> 06/25/02 09:07AM >>>
> 
> the processing and validation of an xml document on the server side in an
> assembly line is really interesting (i mean something like: 
>
> xm document->Schema w3c validation->Schematron validation->databinding to
> java...)

I am trying to do something like this.


> the problem is: if i want to check for validation just behind the browser
> where i write my xml document, i don't find any other way than doing using
> javascript...

I don't think anyone has implemented Schematron or XSLT in Javascript.
How do you write an XML document on a browser, anyway?

In my application the date comes from a form, which results in a servlet
request
object, not an XML file. The servelet has to create the XML file from the
servlet
request object, so the same servlet can then call for validation. If valid,
it can
then pass the data from the servlet request object, as XML or in some other
form,
to the back end.


> so is there anyway to check for validation in the browser using Schema W3C
> and Schematron before sending the xml to the server?

If you absolutely must validate on the browser, I cannot think of any way to
do
this except maybe via a Java applet.


.



picture
(image/gif attachment: 01-part)

Received on Wednesday, 26 June 2002 03:51:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT