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

xerces2 Element type "xsl:stylesheet" must be declared

Subject: xerces2 Element type "xsl:stylesheet" must be declared
From: Othman HADDAD <ohaddad@xxxxxxxxxxxxxx>
Date: Mon, 05 Apr 2004 18:12:47 +0200
element type must be declared
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 "&#160;">
]>
<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


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.