[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Problems with LotusXSL.


Subject: Re: Problems with LotusXSL.
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Tue, 16 Mar 1999 08:31:18 -0500

Michel,

IBM made lots of changes to their XML parser from version 1.1.14  and
2.0. They even made some changes between 2.0 and 2.0.3. Depending on how
Scott wrote LotusXSL, he may be depending on IBM's older architecture. I
know I've had to make many changes to my processor and basically
redesign my processor to get it to work with XML4J 2.0.3. 

The reason you are getting "Attribute not declared" errors is because
IBM made their "TX" Compatibility classes call their ValidatingDOMParser
by default.

If LotusXSL doesn't currently support 2.0.3, it will. I suggest using
XML4J 1.1.14 for now.

--Keith


Michel Goossens wrote:
> 
> I installed the latest versions of xml4j (2.0.3) and Lotusxsl
> (0.16.3) and tried to make them work.
> 
> However, first I had to change the version in xml4j.jar for
> com/ibm/xml/parser/Version.java (it was still 1.1 and lotusxsl
> refused to work with that version) to 2.0.3.
> 
> Then the program begins, and shows the version:
> 
> >>>>>>> LotusXSL Version 0.16.3, XML4J Version 2.0.3 <<<<<<<
> 
> However, when I use it on the following small files
> 
> simple.xml, which contains:
> 
> <simple>XML is simple!</simple>
> 
> and empty.xsl, which contains:
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> </xsl:stylesheet>
> 
> Then I get the following when I type
> 
> java com.lotus.xsl.xml4j.ProcessXSL -in simple.xml -xsl empty.xsl -out a.txt
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> XSL Warning: Found version 2.0.3 of XML4J.
> This version of LotusXSL is only tested with version 1.1.14 of XML4J!
> 
> ========= Parsing empty.xsl ==========
> file:/afs/cern.ch/project/tex/lwc.work/ch-xmlstyle.work/empty.xsl: 1, 26: Attribute, "xmlns:xsl", is not declared in element, "xsl:stylesheet".
> file:/afs/cern.ch/project/tex/lwc.work/ch-xmlstyle.work/empty.xsl: 1, 26: Attribute, "xmlns:xsl", is not declared in element, "xsl:stylesheet".
> parseXML - URL = file:/afs/cern.ch/project/tex/lwc.work/ch-xmlstyle.work/empty.xsl
> file:/afs/cern.ch/project/tex/lwc.work/ch-xmlstyle.work/empty.xsl: 1, 26: Attribute, "xmlns:xsl", is not declared in element, "xsl:stylesheet".
> XSL Error: Cannot open stylesheet: empty.xsl
> XSL Process was not successful.
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> James Clark's xt has no problems with these files and outputs
> 
> XML is simple!
> 
> as I would expect. What am I doing wrong? mg
> 
> Dr. Michel Goossens     Phone: (+41 22) 767-5028
> CERN, IT Division       Fax  : (+41 22) 767-8630
> CH-1211 Geneva 23       Email: michel.goossens@xxxxxxx
> Switzerland
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords