You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/03/12 03:26:45 UTC

[Bug 933] New - Potential Xerces (or Xalan?) regression with stylebook

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=933

*** shadow/933	Sun Mar 11 18:26:45 2001
--- shadow/933.tmp.25036	Sun Mar 11 18:26:45 2001
***************
*** 0 ****
--- 1,145 ----
+ +============================================================================+
+ | Potential Xerces (or Xalan?) regression with stylebook                     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 933                         Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Blocker                  OS/Version:                         |
+ |     Priority:                           Component: Xalan                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: sboag@apache.org                                             |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ "Ted 
+ Leung"                                                                          
+           
+                     <twleung@saur        To:     <xerces-j-
+ dev@xml.apache.org>                                     
+                     ia.com>              cc:     <ge...@xml.apache.org>, 
+ (bcc: Scott Boag/CAM/Lotus)             
+                                          Subject:     Re: Potential Xerces 
+ regression (was: xml-stylebook with     
+                     03/09/2001           xml-
+ xalan2)                                                               
+                     08:24 
+ PM                                                                              
+          
+                     
+ Please                                                                          
+                
+                     respond 
+ to                                                                              
+        
+                     
+ general                                                                         
+                
+                                                                                 
+                                    
+                                                                                 
+                                    
+ 
+ 
+ 
+ 
+ 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" <ru...@us.ibm.com>
+ To: <xe...@xml.apache.org>
+ Cc: <ge...@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