[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: entity expanding in MSIE5
(1) Save out the following HTML page as a file like "val.html" (2) Browse val.html with IE5 (3) Type the name of any URL you want to validate (4) Click the button Have fun. <html> <script> function validateit() { file = filename.value; data.async = false; data.resolveExternals = true; data.validateOnParse = true; data.preserveWhiteSpace = false; data.load( file ); err = data.parseError; error = err.errorCode; if ( error == 0 ) { message.innerText = file + " is valid." ; } else { message.innerText = file + " has errors...\n" + err.srcText + "\n" + "Line " + err.line + ", Pos " + err.linepos + "\n" + "Error: " + err.reason ; } } </script> <head> <title></title> </head> <body> <h1>IE5 Validating Parser Test Page <xml id="data"> </xml> </h1> <p>URL: <input type="text" name="filename" size="20"><input onclick="validateit()" type="submit" value="Validate it!" name="B1"> </p> <hr> <div id="message"></div> </body> </html> ----- Original Message ----- From: Eugeny Kuzakov <kev@xxxxxxxxx> To: Steve Muench <smuench@xxxxxxxxxxxxx> Sent: Thursday, July 08, 1999 12:55 AM Subject: Re: entity expanding in MSIE5 | On Wed, 7 Jul 1999, Steve Muench wrote: | | > If "data" is the name of an XML Data Island in a | > page, then you can do: | > | > file = "YourFileName.xml"; | > | > data.async = false; | > data.resolveExternals = true; | > data.validateOnParse = true; | > data.preserveWhiteSpace = false; | > | > data.load( file ); | > err = data.parseError; | > error = err.errorCode; | > if ( error == 0 ) { | > alert(file + " is valid." ); | > } | > else { | > alert( file + " has errors...\n" + | > err.srcText + "\n" + | > "Line " + err.line + ", Pos " + err.linepos + "\n" + | > "Error: " + err.reason ); | > } | | What is it? | :) | vbscript? | What should I do with it? | | > | > ----- Original Message ----- | > From: Eugeny Kuzakov <kev@xxxxxxxxx> | > To: <xsl-list@xxxxxxxxxxxxxxxx> | > Sent: Wednesday, July 07, 1999 10:14 PM | > Subject: entity expanding in MSIE5 | > | > | > | | > | hi* | > | | > | I have documents, that based on dtd, that contains entityes. | > | MSIE5 don't try expand it. How can I solve this problem? | > | Thanks for advices. | > | | > | -- | > | Best wishes, Eugeny Kuzakov | > | Laboratory 321 ( Omsk, Russia ) | > | kev@xxxxxxxxx | > | ICQ#: 5885106 | > | | > | | > | | > | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list | > | | > | > | > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list | > | | -- | Best wishes, Eugeny Kuzakov | Laboratory 321 ( Omsk, Russia ) | kev@xxxxxxxxx | ICQ#: 5885106 | | | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|