Hi,
i know this question has already been asked but i haven't found a clear answer..
my configuration is: xerces 2.6.1 , jaxp 1.2.4 and xalan 2.1.0 (it's not the last version).
when i use this code:


String stylesheetURL = null;
Transformer processor = null;
TransformerFactory factory = TransformerFactory.newInstance(); .
.........
processor = factory.newTransformer(new StreamSource(stylesheetURL));



i have the following output:

/ [Error] sy_login.xsl:10:42: Element type "xsl:stylesheet" must be declared.
[Error] sy_login.xsl:16:43: Element type "xsl:output" must be declared.
[Error] sy_login.xsl:19:30: Element type "xsl:param" must be declared.
[Error] sy_login.xsl:20:25: Element type "xsl:param" must be declared.
[Error] sy_login.xsl:21:28: Element type "xsl:param" must be declared.
[Error] sy_login.xsl:22:32: Element type "xsl:param" must be declared./
...........


this is due to the begining of my stylesheet that i want to conserve for practical reasons :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >

  <xsl:output method="html" indent="yes" />
.........

- the ouput is the same with jdk1.3 and jdk1.4 ....
- i saw in some previous comments that i've to turn the validation to off but i don't figure how to do it in the code above!!
-how can i access to xerces used by xalan and change its features by using jaxp API (see the code above..)


can somebody help me,because i'm getting a lot of trouble finding this out...?
thank you very much for your very precious help.
othman

Reply via email to