Hello, I am writing an application where the user can enter an xsl stylesheet. I use Xerces to parse this input. When turning on validation the following error occurs:
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the 'setErrorHandler' method to fix this. Error: URI=null Line=2: General Schema Error: Grammar with uri: http://www.w3.org/1999/XSL/Transform , can not be found; schema namespace may be wrong: Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema" namespace or the instance document's namespace may not match the targetNamespace of the schema. Error: URI=null Line=2: Element type "xsl:stylesheet" must be declared. It seems that Xerces does not find a dtd/schema for the xsl namespace. Could someone please tell me what is wrong? Do I have to specify a dtd/schema via xsi:schemaLocation? If yes, where can I find such one? The stylesheets I tested with looks like: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... </xsl:stylesheet> Regards, Bjoern. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]