xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Leung" <twle...@sauria.com>
Subject Re: Potential Xerces regression (was: xml-stylebook with xml-xalan2)
Date Sat, 10 Mar 2001 01:24:32 GMT
I was able to reproduce the problem with these instructions.

It appears that there's a problem with the application of the
book2project.xsl
stylesheet.  I unpacked the apachexml-style.jar and ran the stylesheets by
hand
and everything looks okay to me.  It seems like the problem is down in the
DOM
somewhere, but I'm not up to date on the internals of Xalan2 to know whether
it's
using the DOM or not.  book2project takes to docs-book.xml file and turns it
into a project document.  In the failure case, the root element of the
stylesheet
output claims to be called 'root' (according to Element#getTagName).

It would help if there was a minimal document that produced the problem
(hint, hint).
As it is, we're going to have to dig down through Xalan to figure out where
the parser
is losing.  Help from a Xalanite would be appreciated.

I don't have anymore time to look at it today, but I thought I'd report my
findings
in case someone else has time to take a look.

Ted
----- Original Message -----
From: "Sam Ruby" <rubys@us.ibm.com>
To: <xerces-j-dev@xml.apache.org>
Cc: <general@xml.apache.org>
Sent: Friday, March 09, 2001 9:45 AM
Subject: Re: Potential Xerces regression (was: xml-stylebook with
xml-xalan2)


> More specific instructions (and no, I don't plan to go away until this is
> addressed, but thanks for asking ;-]):
>
> 1) Start with a clean checkout of xml-xerces and a download of
xalan-j_2_0_0.
>
> 2) cd xml-xerces\java; build jar
>
> 3) copy build\xerces.jar to tools\xerces.jar
>
> 4) copy xalan.jar and stylebook-1.0-b3_xalan-2.jar from xalan-j_2_0_0\bin
to tools
>
> 5) erase tools\stylebook-1.0-b2.jar
>
> 6) build -Ddoc.generator.package=tools\stylebook-1.0-b3_xalan-2.jar docs
>
>      [java] [Loader] Parsing Project file
>      [java] [Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/book2project.xsl"
>      [java] [StyleBook] Caught org.apache.stylebook.LoadingException
>      [java] org.apache.stylebook.LoadingException: Project does not start
with <project>
>      [java]     at org.apache.stylebook.Project.<init>(Project.java:39)
>      [java]     at org.apache.stylebook.Loader.load(Loader.java:57)
>      [java]     at
org.apache.stylebook.StyleBook.getProject(StyleBook.java:121)
>      [java]     at org.apache.stylebook.StyleBook.main(StyleBook.java:85)
>      [java] [StyleBook] Error creating project
>      [java] Java Result: 3
>
> 7) copy xerces.jar from xalan-j_2_0_0\bin to tools
>
> 8) build -Ddoc.generator.package=tools\stylebook-1.0-b3_xalan-2.jar docs
>    [java] [StyleBook] All done successfully
>
> Again, the problem seems to have been introduced in the Feb 2nd through
Feb 4th time frame, and appears to be related to the following source
modules:
>
>    javax/xml/parsers/DocumentBuilder.java
>    javax/xml/parsers/DocumentBuilderFactory.java
>    org/apache/xerces/dom/AttrImpl.java
>    org/apache/xerces/dom/DocumentImpl.java
>    org/apache/xerces/dom/ElementImpl.java
>    org/apache/xerces/dom/ParentNode.java
>    org/apache/xerces/jaxp/DefaultValidationErrorHandler.java
>    org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.java
>    org/apache/xerces/jaxp/DocumentBuilderImpl.java
>    org/apache/xerces/jaxp/SAXParserFactoryImpl.java
>    org/apache/xerces/jaxp/SAXParserImpl.java
>    org/apache/xerces/parsers/DOMParser.java
>    org/apache/xerces/validators/common/XMLValidator.java
>    org/apache/xerces/validators/schema/TraverseSchema.java
>
> - Sam Ruby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message