W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2005

RE: XSL validation

From: Michael Kay <mike@saxonica.com>
Date: Tue, 1 Nov 2005 08:37:41 -0000
To: "'Gary Friedrich'" <gary@amicusystems.com>, <xmlschema-dev@w3.org>
Message-ID: <E1EWreV-00053u-PW@maggie.w3.org>
When you say you ran it through the validator, which validator are you
referring to?
 
I'm not sure why you've posted this on xmlschema-dev - it doesn't have
anything to do with XML Schemas.
 
What you've got is a valid XSLT stylesheet that generates valid HTML
containing syntactically-incorrect Javascript. Mixing languages like that is
always problematical from the debugging point of view, because there's no
one piece of software that understands all three languages; and even if
there were, you couldn't in general detect the Javascript errors statically
because the Javascript is constructed at transformation time.
 
I think that the only way you're going to crack problems like this is using
the Javascript tools in your browser, and if they aren't good enough then
you should complain to the vendor or find an alternative supplier. Or
perhaps you should be weaning yourself off Javascript and using XForms -
there are a couple of server-side XForms products that generate the
Javascript for you.
 
Michael Kay
http://www.saxonica.com/ 


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Gary Friedrich
Sent: 31 October 2005 14:43
To: xmlschema-dev@w3.org
Subject: XSL validation


I am trying to verify an xsl file
 
The file worked on windows / IIS - did not work on linux / apache
 
I have found the problem - but it took quite a while - I eliminated code
until I found where the problem was.
 
The problem was
    a semi-colon was missing after an onmouseout stmt
 
I am looking for a better way to validate our files
 
I tried running the file through the validator - it came up with errors on
line 1
 
Are our files incompatible with the validator?
 
If yes, do you have any ideas on how we can best validate our files?
 
I have included the file I am trying to validate
    The error is on line 822 - it is missing a ; at end of line
        onmouseout="style.background='{s1-t1-btn-mst-c}'
 
 
Thank you
 
Gary  - AMI - 262-886-4170
 
 
Received on Tuesday, 1 November 2005 08:38:00 GMT

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