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./
...........
the begining of my stylesheet:
/<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:localization="xalan://com.neomalogic.gtp.common.localization.Localization"
exclude-result-prefixes="localization">
<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!!
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