OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [SPAM] Element type "xsl:stylesheet" must be declared.


Hello all,

I am attempting to process a docbook document using Xalan and the latest stylesheets (1.72.0), but I am receiving a stream of errors:

[Error] autoidx.xsl:10:31: Element type "xsl:stylesheet" must be declared.
[Error] autoidx.xsl:27:50: Element type "xsl:variable" must be declared.
[Error] autoidx.xsl:28:49: Element type "xsl:variable" must be declared.
[Error] autoidx.xsl:32:79: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:36:27: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:40:55: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:44:74: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:48:27: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:52:56: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:56:76: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:60:95: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:64:90: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:68:86: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:70:71: Element type "xsl:key" must be declared.
[Error] autoidx.xsl:73:37: Element type "xsl:template" must be declared.

followed by many more lines of errors.

What I have done is this:
1. Downloaded docbook-xsl-1.72.0
2. Downloaded fop-0.93 (which contains Xalan)
Unzipped them both in a directory C:\dbk. So this directory contains 2 subdirectories.


My command-line is this (added new-lines for formatting purposes):
java -cp C:\dbk\fop-0.93\build\fop.jar;
     C:\dbk\fop-0.93\lib\xalan-2.7.0.jar;
     C:\dbk\fop-0.93\lib\xml-apis-1.3.02.jar;
     C:\dbk\fop-0.93\lib\xercesImpl-2.7.1.jar;
     C:\dbk\docbook-xsl-1.72.0\extensions\xalan27.jar
org.apache.xalan.xslt.Process
-in sample.xml
-out "sample.html"
-xsl "C:\dbk\docbook-xsl-1.72.0\html\docbook.xsl"
-param use.extensions 1

I cannot figure out why I am getting these errors. By the way, I am fairly new to Docbook and XSL so it may be something very obvious for more experienced people.

Thanks for your help,
Mike.




 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]