Lists Home |
Date Index |
- To: "Braumuller, Hans" <email@example.com>
- Subject: RE: [xml-dev] XML Schema - > XML Instance - > XSLT Transformation with MSXML 4 ?
- From: "Manos Batsis" <firstname.lastname@example.org>
- Date: Tue, 26 Feb 2002 11:56:09 +0200
- Cc: "XML DEV" <email@example.com>
- Thread-index: AcG+qWngRQnNutXRTlCXky7tK9rTtwAATdyA
- Thread-topic: [xml-dev] XML Schema - > XML Instance - > XSLT Transformation with MSXML 4 ?
What you are asking this is easy and you may have used it before:
var xmlDomObj = new ActiveXObject("MSXML2.DOMDocument.4.0");
xmlDomObj .async = false;
xmlDomObj .validateOnParse = true; // <-- validate (default is true)
if (xmlDomObj .parseError.errorCode != 0)
// Handle error
You can also associate an instance with a schema through the read/write
schemas property .
I prefer a more convenient and standard method to do the association by
using the xsi:schemaLocation attribute in the instance document.
> -----Original Message-----
> From: Braumuller, Hans [mailto:firstname.lastname@example.org]
> Sent: Tuesday, February 26, 2002 11:34 AM
> To: 'email@example.com'
> Subject: [xml-dev] XML Schema - > XML Instance - > XSLT
> Transformation with MSXML 4 ?
> this is my first post at this list. I am working daily as
> webdesigner at
> Hanse Orga, Germany and being a visual artist engage in
> networking art and
> poetry. As webdesigner i am developing the XML/XSL/CSS/JS
> What we are doing at Hanse Orga is developing a financial
> software, where we
> used xml as a bridge between our backend programmed with COM and our
> frontend developed with XSLT, which transformed the
> XML-String passed by our
> ServletEngine (Java) into XHTML combined with CSS and
> we use for some validations at the client side (IE6). This is
> a workaround,
> because our business logic written in Centura/Gupta exists
> since many years
> on a windows client/server system.
> My first key question is, that i want try to include the XML
> Schema linking
> it with my XML Instance String, which are transformed with
> XSLT in the above
> mentionred output.
> I know now, that MSXML 4 support the whole W3 Recommendation
> of XML Schema.
> Can anyone supplies a working example, how to link this three
> document on
> the client side?
> Secondly, from that point i want test, if it is possibly to do some
> validation on the client side, to see if i can validate
> against the schema
> by checking the user input, instead of using complicated
> imagine for example, if some user put a not valid date format
> in an input
> field, an alert box pops up with the message "This is not a valid date
> format" . Is this possible to generate with XML Schema ? Or
> is XML Schema
> designed in mind for software agents, valid data exchange and
> purpose only ?
> Thank you,
> Hans Braumuller
> Systementwickler Web-Design
> Hanse Orga AG
> Sportallee 41
> D-22335 Hamburg
> Telefon: (+49) 040 51 48 08-62
> Telefax: (+49) 040 51 48 08-88
> E-Mail: firstname.lastname@example.org
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>