[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: entity expanding in MSIE5

Subject: Re: entity expanding in MSIE5
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Thu, 8 Jul 1999 06:01:12 -0700
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.