You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Karen Lease <kl...@club-internet.fr> on 2000/11/12 21:32:47 UTC

Problem building SVG examples

Hello Keiron (or anyone else),

I have a problem when I try to build the svg examples
(docs/examples/svg) using makedoc.sh. The problem comes from the Xslt
task used to build the fo. The messages are :

------------------------------
svg-all:
============================
xslt 
in: All.xml
style: Document.xsl
out: svgdoc.fo
============================
[Error] attribute entry not found in element type Diagram
Parser error: Attribute "entry" must be declared for element type
"Diagram".
http://www.w3.org/2000/svg grammar not found
Parser error: Element type "svg:svg" must be declared.
[Error] attribute width not found in element type svg:svg
Parser error: Attribute "width" must be declared for element type
"svg:svg".
etc, etc for all svg:* elements

-----------------------------------------------------------

The attribute problem is easily corrected by adding it to diagrams.dtd.
But why does the parser insist on trying to access the namespace for
SVG? It can't, since I'm not hooked directly to the Internet but I
didn't think it needed to!

I'm using the latest FOP CVS, Xerces 1.1.2 and Xalan 1.1 on Linux PPC
(Mac). I don't have any problems building FOP or running the standard FO
tests. If I comment out the DOCTYPE declaration in the *-diagrams.xml
files, the parser is happier (except that it complains that the xlink:
prefix isn't defined, which is true.) Once the FO file is built, the FOP
pass is fine.

Do you have any ideas?

Thanks,
Karen


Re: User question: tables vs columns

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Peter B. West >>

> >I have a more general question.  What is the strategy for moving from
> >the April 99 draft to the October 2000 WD, and to the Recommendation? 
> >>From an initial scan of the two, the differences seem significant.

In version 0.14 Fop moved to support xsl wd 03/27/2000. The 
differences between this wd and the October wd are not very 
significant as far as Fop is concerned. I think 0.15 will be quite 
conformant the latest wd - but not even on basic level. 
 
Fotis

Re: User question: tables vs columns

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 10:15 AM 11/14/00 +0000, Peter B. West wrote:
>
>So, should I now abandon Cocoon 1 completely, and get the current FOP
>code base?  If so, which versions of Xalan and Xerces will I need?  Am I
>better off with tables, or is there adequate column support?  Am I going
>to have to fix the code myself for these requirements?

The support that Cocoon provides for interoperability with FOP is somewhat 
out of our hands. They use FOP, rather than vice versa. That being said, I 
was intending to re-contact them after Stefano Mazzocchi's "retirement" (he 
being the main guy, I believe, for Cocoon liaison with FOP until now) to see 
what's up in this regard.

You definitely can anticipate column support and improved tables in the near 
future. There are at least 3 of the most active committers working on these 
areas at present. No promises but look for useful stuff by XMas.

>I have a more general question.  What is the strategy for moving from
>the April 99 draft to the October 2000 WD, and to the Recommendation? 
>>From an initial scan of the two, the differences seem significant.

Good question.

The strategy is reasonably formal, as spelled out on the Apache FOP website, 
but it hasn't been updated (I think) to reflect the October 18, 2000 WD, and 
it doesn't mention the CR phase because that hasn't officially started.

In a nutshell, though, you'll note from a perusal of the source, from Fotis' 
Status page, and from the mailing list archives that we are very cognizant 
of the latest WD, and that existing code is relatively quickly updated.

I have every reason to believe that a very useful version of FOP, at least 
at Basic conformance level and in some areas close to Extended, should be in 
place just about when the actual Recommendation appears.

Regards, Arved Sandstrom

Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"


User question: tables vs columns

Posted by "Peter B. West" <pb...@powerup.com.au>.
Hello list,

I am in the process of preparing some PDF files from XML masters for a
web site.  I am writing a stylesheet which produces the fo: XML, and
have generated some test PDF files.  My problem is with columnar
output.  The format of the output is
	HEADINGS
	sub-heading
A column of	A column of
English text	Latin text
	sub-heading
A column of	A column of
English text	Latin text
	etc...

Each of the pairs of columns is specified as a separate table with a
single row.  The text in a single column can be over a page long.

I am using the Cocoon 1.8 distribution.  When I looked (briefly) at the
capabilities, it seemed that the best bet was to use tables, in spite of
the limitations.  My formatting requirements are relatively simple
(initially, at least), so I went this way, with some trepidation.

When I reached the bottom of the first page, I found that the left cell
text seemed to split at the right place, but nothing of the first part
of the column appeared on the first page.  The remainder of the column
printed in the first column of the second page, and all of the text in
the second column appeared on the second page.

Re: Problem building

Posted by Rafizan Baharum <ud...@umich.edu>.
hi kelly

i finally gotta build the darn jar ;) my problem was i used jaxp instead of xerces. this is because
somewhere in build system it complains that i have to use JAXP compliant XML parser. so i used one!
thanks again for your help.


fopper..
.z00t



Kelly Campbell wrote:

> There are instructions at http://xml.apache.org/fop/compiling.html
>
> However, they look a little out of date. Make sure you have the latest cvs
> tree (run cvs update) if that's what you're trying to build.
>
> Here's what my classpath contains when I build (and nothing else):
> xerces-1_2_1/xerces.jar:xalan-1_2_0/xalan.jar:xalan-1_2_0/bsf.jar:
> ${JAVA_HOME}/jre/lib/rt.jar:xml-fop/lib/w3c.jar
>
> Hope that helps you.
>
> -Kelly
>
> On Mon, Nov 13, 2000 at 06:05:35PM -0500, Rafizan Baharum wrote:
> > hi again..
> >
> > finally after poking for information here and there. ive found that my jaxp is actually an older
> > version..shucks!
> > but my good friend...i still have problem building ;)  here's my error message.i appreciate your
> > help
> >
> > ps: do we have a FAQ for building? or did my weary eyes missed it?
> >
> >
> > .z00t
> >
> > C:\xml-fop>build
> > Fop Build System
> > ----------------
> > Building with classpath
> > C:\jdk1.3\lib\tools.jar;C:\jdk1.3\lib\classes.zip;lib\ant.jar;lib\jaxp.jar;lib\xerces.jar;lib\;lib\xalan.jar;lib/bsf.jar;
> >
> > Starting Ant...
> > Buildfile: build.xml
> >     [chmod] The src attribute is deprecated. Please use the file attribute.
> >     [chmod] The src attribute is deprecated. Please use the file attribute.
> >
> > init:
> > ------------------- Fop 0.15cvs [1999-2000] ----------------
> >
> > prepare:
> > Preparing the build directories
> >     [mkdir] Created dir: C:\xml-fop\build
> >     [mkdir] Created dir: C:\xml-fop\build\src
> >     [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\fo\properties
> >     [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\render\pdf\fonts
> >
> > codegen:
> > Resetting codegen directory
> >   [copydir] Copying 26 files to C:\xml-fop\build\src\codegen
> > Generating the java files from xml resources
> > ****************************
> > xslt compile
> > in: ./build/src/codegen/properties.xsl
> > ****************************
> > ============================
> > xslt
> > in: ./build/src/codegen/foproperties.xml
> > style: ./build/src/codegen/properties.xsl
> > out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ============================
> > xslt
> > in: ./build/src/codegen/svgproperties.xml
> > style: ./build/src/codegen/properties.xsl
> > out: ./build/src/org/apache/fop/fo/properties/svg_ignore_this.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ****************************
> > xslt compile
> > in: ./build/src/codegen/propmap.xsl
> > ****************************
> > ============================
> > xslt
> > in: ./build/src/codegen/foproperties.xml
> > style: ./build/src/codegen/propmap.xsl
> > out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ============================
> > xslt
> > in: ./build/src/codegen/svgproperties.xml
> > style: ./build/src/codegen/propmap.xsl
> > out: ./build/src/org/apache/fop/fo/properties/SVGPropertyMapping.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ****************************
> > xslt compile
> > in: ./build/src/codegen/enumgen.xsl
> > ****************************
> > ============================
> > xslt
> > in: ./build/src/codegen/foproperties.xml
> > style: ./build/src/codegen/enumgen.xsl
> > out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ============================
> > xslt
> > in: ./build/src/codegen/svgproperties.xml
> > style: ./build/src/codegen/enumgen.xsl
> > out: ./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ****************************
> > xslt compile
> > in: ./build/src/codegen/code-point-mapping.xsl
> > ****************************
> > ============================
> > xslt
> > in: ./build/src/codegen/charlist.xml
> > style: ./build/src/codegen/code-point-mapping.xsl
> > out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
> > ============================
> > Task xslt - SAX ERROR:
> >       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> > com.sun.xml.tree.XmlDocument
> > ****************************
> > xslt compile
> > in: ./build/src/codegen/font-file.xsl
> > ****************************
> >
> > BUILD FAILED
> >
> > java.lang.AbstractMethodError
> >         at Xslt.buildDocument(Xslt.java:177)
> >         at Xslt.transform(Xslt.java:202)
> >         at Xslt.startTransform(Xslt.java:226)
> >         at Xslt.execute(Xslt.java:317)
> >         at org.apache.tools.ant.Target.execute(Target.java:132)
> >         at org.apache.tools.ant.Project.runTarget(Project.java:717)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:448)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:422)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:279)
> >         at org.apache.tools.ant.Main.main(Main.java:107)
> >
> > Total time: 10 seconds
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Rafizan Baharum wrote:
> >
> > > hi all
> > >
> > > i still have this annoying build problem. ive tried everything. seems like
> > > Xslt.class cannot be found
> > > while building fop. i might be wrong. but nway here's my error message
> > >
> > > C:\xml-fop>build
> > > Fop Build System
> > > ----------------
> > > Building with classpath
> > > C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\lib\classes.zip;lib\ant.jar;lib\w3c.jar;lib\xerces.jar;lib
> > >
> > > Starting Ant...
> > > Buildfile: build.xml
> > > taskdef class Xslt cannot be found
> > >         at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
> > >         at
> > > org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java, Compiled
> > > Code)
> > >         at
> > > org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java,
> > > Compiled Code)
> > >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
> > >         at com.sun.xml.parser.Parser.content(Parser.java:1499)
> > >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> > >         at com.sun.xml.parser.Parser.content(Parser.java:1499)
> > >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> > >         at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> > >         at com.sun.xml.parser.Parser.parse(Parser.java:284)
> > >         at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
> > >         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
> > >         at org.apache.tools.ant.Main.main(Main.java:107)
> > >
> > > BUILD FAILED
> > >
> > > build.xml:288: Could not create task of type: xslt because I can't find it in the
> > > list of task class definitions
> > >
> > > Total time: 3 seconds
> > >
> > > TIA
> > >
> > > .z00t
>
> --
> Kelly A. Campbell                        Software Engineer
> camk@channelpoint.com                    Channelpoint, Inc.
> camk@camk.net  camk@merlotxml.org        Colorado Springs, Co.


Re: Problem building

Posted by Kelly Campbell <ca...@camk.net>.
There are instructions at http://xml.apache.org/fop/compiling.html

However, they look a little out of date. Make sure you have the latest cvs 
tree (run cvs update) if that's what you're trying to build.

Here's what my classpath contains when I build (and nothing else):
xerces-1_2_1/xerces.jar:xalan-1_2_0/xalan.jar:xalan-1_2_0/bsf.jar:
${JAVA_HOME}/jre/lib/rt.jar:xml-fop/lib/w3c.jar

Hope that helps you.

-Kelly

On Mon, Nov 13, 2000 at 06:05:35PM -0500, Rafizan Baharum wrote:
> hi again..
> 
> finally after poking for information here and there. ive found that my jaxp is actually an older
> version..shucks!
> but my good friend...i still have problem building ;)  here's my error message.i appreciate your
> help
> 
> ps: do we have a FAQ for building? or did my weary eyes missed it?
> 
> 
> .z00t
> 
> C:\xml-fop>build
> Fop Build System
> ----------------
> Building with classpath
> C:\jdk1.3\lib\tools.jar;C:\jdk1.3\lib\classes.zip;lib\ant.jar;lib\jaxp.jar;lib\xerces.jar;lib\;lib\xalan.jar;lib/bsf.jar;
> 
> Starting Ant...
> Buildfile: build.xml
>     [chmod] The src attribute is deprecated. Please use the file attribute.
>     [chmod] The src attribute is deprecated. Please use the file attribute.
> 
> init:
> ------------------- Fop 0.15cvs [1999-2000] ----------------
> 
> prepare:
> Preparing the build directories
>     [mkdir] Created dir: C:\xml-fop\build
>     [mkdir] Created dir: C:\xml-fop\build\src
>     [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\fo\properties
>     [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\render\pdf\fonts
> 
> codegen:
> Resetting codegen directory
>   [copydir] Copying 26 files to C:\xml-fop\build\src\codegen
> Generating the java files from xml resources
> ****************************
> xslt compile
> in: ./build/src/codegen/properties.xsl
> ****************************
> ============================
> xslt
> in: ./build/src/codegen/foproperties.xml
> style: ./build/src/codegen/properties.xsl
> out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ============================
> xslt
> in: ./build/src/codegen/svgproperties.xml
> style: ./build/src/codegen/properties.xsl
> out: ./build/src/org/apache/fop/fo/properties/svg_ignore_this.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ****************************
> xslt compile
> in: ./build/src/codegen/propmap.xsl
> ****************************
> ============================
> xslt
> in: ./build/src/codegen/foproperties.xml
> style: ./build/src/codegen/propmap.xsl
> out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ============================
> xslt
> in: ./build/src/codegen/svgproperties.xml
> style: ./build/src/codegen/propmap.xsl
> out: ./build/src/org/apache/fop/fo/properties/SVGPropertyMapping.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ****************************
> xslt compile
> in: ./build/src/codegen/enumgen.xsl
> ****************************
> ============================
> xslt
> in: ./build/src/codegen/foproperties.xml
> style: ./build/src/codegen/enumgen.xsl
> out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ============================
> xslt
> in: ./build/src/codegen/svgproperties.xml
> style: ./build/src/codegen/enumgen.xsl
> out: ./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ****************************
> xslt compile
> in: ./build/src/codegen/code-point-mapping.xsl
> ****************************
> ============================
> xslt
> in: ./build/src/codegen/charlist.xml
> style: ./build/src/codegen/code-point-mapping.xsl
> out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
> ============================
> Task xslt - SAX ERROR:
>       org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
> com.sun.xml.tree.XmlDocument
> ****************************
> xslt compile
> in: ./build/src/codegen/font-file.xsl
> ****************************
> 
> BUILD FAILED
> 
> java.lang.AbstractMethodError
>         at Xslt.buildDocument(Xslt.java:177)
>         at Xslt.transform(Xslt.java:202)
>         at Xslt.startTransform(Xslt.java:226)
>         at Xslt.execute(Xslt.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:132)
>         at org.apache.tools.ant.Project.runTarget(Project.java:717)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:448)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:422)
>         at org.apache.tools.ant.Main.runBuild(Main.java:279)
>         at org.apache.tools.ant.Main.main(Main.java:107)
> 
> Total time: 10 seconds
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Rafizan Baharum wrote:
> 
> > hi all
> >
> > i still have this annoying build problem. ive tried everything. seems like
> > Xslt.class cannot be found
> > while building fop. i might be wrong. but nway here's my error message
> >
> > C:\xml-fop>build
> > Fop Build System
> > ----------------
> > Building with classpath
> > C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\lib\classes.zip;lib\ant.jar;lib\w3c.jar;lib\xerces.jar;lib
> >
> > Starting Ant...
> > Buildfile: build.xml
> > taskdef class Xslt cannot be found
> >         at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
> >         at
> > org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java, Compiled
> > Code)
> >         at
> > org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java,
> > Compiled Code)
> >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
> >         at com.sun.xml.parser.Parser.content(Parser.java:1499)
> >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> >         at com.sun.xml.parser.Parser.content(Parser.java:1499)
> >         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> >         at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> >         at com.sun.xml.parser.Parser.parse(Parser.java:284)
> >         at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
> >         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
> >         at org.apache.tools.ant.Main.main(Main.java:107)
> >
> > BUILD FAILED
> >
> > build.xml:288: Could not create task of type: xslt because I can't find it in the
> > list of task class definitions
> >
> > Total time: 3 seconds
> >
> > TIA
> >
> > .z00t

-- 
Kelly A. Campbell                        Software Engineer
camk@channelpoint.com                    Channelpoint, Inc.
camk@camk.net  camk@merlotxml.org        Colorado Springs, Co.

Re: Problem building

Posted by Rafizan Baharum <ud...@umich.edu>.
hi again..

finally after poking for information here and there. ive found that my jaxp is actually an older
version..shucks!
but my good friend...i still have problem building ;)  here's my error message.i appreciate your
help

ps: do we have a FAQ for building? or did my weary eyes missed it?


.z00t

C:\xml-fop>build
Fop Build System
----------------
Building with classpath
C:\jdk1.3\lib\tools.jar;C:\jdk1.3\lib\classes.zip;lib\ant.jar;lib\jaxp.jar;lib\xerces.jar;lib\;lib\xalan.jar;lib/bsf.jar;

Starting Ant...
Buildfile: build.xml
    [chmod] The src attribute is deprecated. Please use the file attribute.
    [chmod] The src attribute is deprecated. Please use the file attribute.

init:
------------------- Fop 0.15cvs [1999-2000] ----------------

prepare:
Preparing the build directories
    [mkdir] Created dir: C:\xml-fop\build
    [mkdir] Created dir: C:\xml-fop\build\src
    [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\fo\properties
    [mkdir] Created dir: C:\xml-fop\build\src\org\apache\fop\render\pdf\fonts

codegen:
Resetting codegen directory
  [copydir] Copying 26 files to C:\xml-fop\build\src\codegen
Generating the java files from xml resources
****************************
xslt compile
in: ./build/src/codegen/properties.xsl
****************************
============================
xslt
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
============================
xslt
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/svg_ignore_this.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
****************************
xslt compile
in: ./build/src/codegen/propmap.xsl
****************************
============================
xslt
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/propmap.xsl
out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
============================
xslt
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/propmap.xsl
out: ./build/src/org/apache/fop/fo/properties/SVGPropertyMapping.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
****************************
xslt compile
in: ./build/src/codegen/enumgen.xsl
****************************
============================
xslt
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
============================
xslt
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
****************************
xslt compile
in: ./build/src/codegen/code-point-mapping.xsl
****************************
============================
xslt
in: ./build/src/codegen/charlist.xml
style: ./build/src/codegen/code-point-mapping.xsl
out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
============================
Task xslt - SAX ERROR:
      org.xml.sax.SAXException: XercesLiaison can not handle nodes of type class
com.sun.xml.tree.XmlDocument
****************************
xslt compile
in: ./build/src/codegen/font-file.xsl
****************************

BUILD FAILED

java.lang.AbstractMethodError
        at Xslt.buildDocument(Xslt.java:177)
        at Xslt.transform(Xslt.java:202)
        at Xslt.startTransform(Xslt.java:226)
        at Xslt.execute(Xslt.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:132)
        at org.apache.tools.ant.Project.runTarget(Project.java:717)
        at org.apache.tools.ant.Project.executeTarget(Project.java:448)
        at org.apache.tools.ant.Project.executeTargets(Project.java:422)
        at org.apache.tools.ant.Main.runBuild(Main.java:279)
        at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 10 seconds











Rafizan Baharum wrote:

> hi all
>
> i still have this annoying build problem. ive tried everything. seems like
> Xslt.class cannot be found
> while building fop. i might be wrong. but nway here's my error message
>
> C:\xml-fop>build
> Fop Build System
> ----------------
> Building with classpath
> C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\lib\classes.zip;lib\ant.jar;lib\w3c.jar;lib\xerces.jar;lib
>
> Starting Ant...
> Buildfile: build.xml
> taskdef class Xslt cannot be found
>         at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
>         at
> org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java, Compiled
> Code)
>         at
> org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java,
> Compiled Code)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
>         at com.sun.xml.parser.Parser.content(Parser.java:1499)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
>         at com.sun.xml.parser.Parser.content(Parser.java:1499)
>         at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
>         at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
>         at com.sun.xml.parser.Parser.parse(Parser.java:284)
>         at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:107)
>
> BUILD FAILED
>
> build.xml:288: Could not create task of type: xslt because I can't find it in the
> list of task class definitions
>
> Total time: 3 seconds
>
> TIA
>
> .z00t


Re: Problem building SVG examples

Posted by Rafizan Baharum <ud...@umich.edu>.
hi all

i still have this annoying build problem. ive tried everything. seems like
Xslt.class cannot be found
while building fop. i might be wrong. but nway here's my error message

C:\xml-fop>build
Fop Build System
----------------
Building with classpath
C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2\lib\classes.zip;lib\ant.jar;lib\w3c.jar;lib\xerces.jar;lib

Starting Ant...
Buildfile: build.xml
taskdef class Xslt cannot be found
        at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
        at
org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java, Compiled
Code)
        at
org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java,
Compiled Code)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:107)

BUILD FAILED

build.xml:288: Could not create task of type: xslt because I can't find it in the
list of task class definitions

Total time: 3 seconds

TIA

.z00t



Re: Problem building SVG examples

Posted by Karen Lease <kl...@club-internet.fr>.
Keiron and Fotis,

Just after I wrote this message, I updated fop. It looks like Kelly's
latest change to the Xslt task using the stylesheet cache, fixes the
problem. He uses a different parser liaison and the problem has gone
away!  Yippee.

-Karen

Keiron Liddle wrote:
> 
> These errors have annoyed me too.
> The problem appears to be that the xslt parser thinks the xml documents
> don't agree with the dtd.
> I don't know dtd well enough to know how to fix it.
> 
> I was considering using xml schema, which seems to be able to handle things
> better.
> But since it still actually does the transformation it didn't seem that
> much of a problem.
> 
> Maybe someone who knows all about dtd's etc will know better what to do.
> 
> Keiron.
> 
> Karen Lease wrote:
> 
> > Hello Keiron (or anyone else),
> >
> > I have a problem when I try to build the svg examples
> > (docs/examples/svg) using makedoc.sh. The problem comes from the Xslt
> > task used to build the fo. The messages are :
> >
> > ------------------------------
> > svg-all:
> > ============================
> > xslt
> > in: All.xml
> > style: Document.xsl
> > out: svgdoc.fo
> > ============================
> > [Error] attribute entry not found in element type Diagram
> > Parser error: Attribute "entry" must be declared for element type
> > "Diagram".
> > http://www.w3.org/2000/svg grammar not found
> > Parser error: Element type "svg:svg" must be declared.
> > [Error] attribute width not found in element type svg:svg
> > Parser error: Attribute "width" must be declared for element type
> > "svg:svg".
> > etc, etc for all svg:* elements
> >
> > -----------------------------------------------------------
> >
> > The attribute problem is easily corrected by adding it to diagrams.dtd.
> > But why does the parser insist on trying to access the namespace for
> > SVG? It can't, since I'm not hooked directly to the Internet but I
> > didn't think it needed to!
> >
> > I'm using the latest FOP CVS, Xerces 1.1.2 and Xalan 1.1 on Linux PPC
> > (Mac). I don't have any problems building FOP or running the standard FO
> > tests. If I comment out the DOCTYPE declaration in the *-diagrams.xml
> > files, the parser is happier (except that it complains that the xlink:
> > prefix isn't defined, which is true.) Once the FO file is built, the FOP
> > pass is fine.
> >
> > Do you have any ideas?
> >
> > Thanks,
> > Karen

Re: Problem building SVG examples

Posted by Keiron Liddle <ke...@aftexsw.com>.
These errors have annoyed me too.
The problem appears to be that the xslt parser thinks the xml documents
don't agree with the dtd.
I don't know dtd well enough to know how to fix it.

I was considering using xml schema, which seems to be able to handle things
better.
But since it still actually does the transformation it didn't seem that
much of a problem.

Maybe someone who knows all about dtd's etc will know better what to do.

Keiron.

Karen Lease wrote:

> Hello Keiron (or anyone else),
>
> I have a problem when I try to build the svg examples
> (docs/examples/svg) using makedoc.sh. The problem comes from the Xslt
> task used to build the fo. The messages are :
>
> ------------------------------
> svg-all:
> ============================
> xslt
> in: All.xml
> style: Document.xsl
> out: svgdoc.fo
> ============================
> [Error] attribute entry not found in element type Diagram
> Parser error: Attribute "entry" must be declared for element type
> "Diagram".
> http://www.w3.org/2000/svg grammar not found
> Parser error: Element type "svg:svg" must be declared.
> [Error] attribute width not found in element type svg:svg
> Parser error: Attribute "width" must be declared for element type
> "svg:svg".
> etc, etc for all svg:* elements
>
> -----------------------------------------------------------
>
> The attribute problem is easily corrected by adding it to diagrams.dtd.
> But why does the parser insist on trying to access the namespace for
> SVG? It can't, since I'm not hooked directly to the Internet but I
> didn't think it needed to!
>
> I'm using the latest FOP CVS, Xerces 1.1.2 and Xalan 1.1 on Linux PPC
> (Mac). I don't have any problems building FOP or running the standard FO
> tests. If I comment out the DOCTYPE declaration in the *-diagrams.xml
> files, the parser is happier (except that it complains that the xlink:
> prefix isn't defined, which is true.) Once the FO file is built, the FOP
> pass is fine.
>
> Do you have any ideas?
>
> Thanks,
> Karen


Re: Problem building SVG examples

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Hello Karen, 
this looks as if Xerces is automatically switching to be a validating 
parser as soon as there is a DOCTYPE definition. In the Xerces 
version I have (1.2.1) there is a switch called dynamic validation, 
which does exactly this, but it is off by default. 
I checked through the Xalan code: it does throw this switch to on in 
the DTMLiaison           
We have to fix Xslt.java to avoid this. 
Fotis

From:           	Karen Lease <kl...@club-internet.fr>
> Hello Keiron (or anyone else),
> 
> I have a problem when I try to build the svg examples
> (docs/examples/svg) using makedoc.sh. The problem comes from the Xslt
> task used to build the fo. The messages are :
> 
[...]

> The attribute problem is easily corrected by adding it to diagrams.dtd.
> But why does the parser insist on trying to access the namespace for
> SVG? It can't, since I'm not hooked directly to the Internet but I
> didn't think it needed to!
> 
> I'm using the latest FOP CVS, Xerces 1.1.2 and Xalan 1.1 on Linux PPC
> (Mac). I don't have any problems building FOP or running the standard FO
> tests. If I comment out the DOCTYPE declaration in the *-diagrams.xml
> files, the parser is happier (except that it complains that the xlink:
> prefix isn't defined, which is true.) Once the FO file is built, the FOP
> pass is fine.
> 
> Do you have any ideas?
> 
> Thanks,
> Karen
>