This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
AW: Creating a website with the website.dtd
- From: "Daniel S. Haischt" <sirabyss at gmx dot net>
- To: Gerrit Kuilder <gerrit at kuilder dot net>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Sun, 17 Nov 2002 18:19:39 +0100
- Subject: AW: DOCBOOK-APPS: Creating a website with the website.dtd
- Reply-to: daniel dot haischt at daniel-s-haischt dot biz
hello,
the website source tarball comes with an ant build file,
called 'build.xml' in the directory /website/example.
there u can find the exact command how to execute the
saxon XSLT processor from within the Java VM.
the trick is, that u have to tell the saxon XSLT processor
to use extensions by setting a specific flag.
hold on i am looking for the exact command line ...
... ok here we go ...
-----------8<--------------8<-------------8<--------------
#!/bin/sh
JAVA_HOME=/usr/local/java/jdk1.3.1
JAVA=${JAVA_HOME}/bin/java
CLASSPATH=/java/saxon-6.5.2/saxon.jar \
/java/xml-commons-1.0.b2/java/build/resolver.jar \
/usr/local/sgml/docbook-xslt/extensions/saxon643.jar \
/usr/local/sgml/website/extensions/saxon64.jar
${JAVA} -cp ${CLASSPATH} com.icl.saxon.StyleSheet \
-o . \
-x org.apache.xml.resolver.tools.ResolvingXMLReader \
-y org.apache.xml.resolver.tools.ResolvingXMLReader \
-r org.apache.xml.resolver.tools.CatalogResolver \
/usr/local/sgml/website/examples/layout.xml \
/usr/local/sgml/website/xsl/autolayout.xsl \
saxon.extensions=1
----------->8-------------->8------------->8--------------
do u see the parameter 'saxon.extensions=1'? that enables
XSLT extensions.
hope this reply helps ...
regards
daniel s. haischt
--
> -----Ursprüngliche Nachricht-----
> Von: Gerrit Kuilder [mailto:gerrit@kuilder.net]
> Gesendet: Sonntag, 17. November 2002 16:54
> An: Dave Pawson
> Cc: docbook-apps@lists.oasis-open.org
> Betreff: Re: DOCBOOK-APPS: Creating a website with the website.dtd
>
>
> Hello all,
>
> Well you said to keep asking.....
>
> Dave Pawson wrote:
>
> >At 14:05 17/11/2002, Gerrit Kuilder wrote:
> >
> >
> >>Hello All,
> >>
> >>I have spend the last three hours looking for what must be the
> best kept secret on the internet:
> >>
> >>
> >
> ><grin/>You forgot to face South, spin 3 times whilst chanting !
> >
> That's standard procedure isn't it? especially on W2K, I saw THAT in the
> release notes...
>
> >>What does the command look like for creating the sample website
> as it is provided with the webiste.dtd?
> >>
> >>
> >>So I downloaded a java saxon (7.1) but I am still missing something:
> >>
> >>
> >Yep. Go back and download Saxon 6.5.2
> >
> Ok, That is downloading....
>
> >>my command [1] fails: Fail: this stylesheet relies on the
> exists() extension function
> >>Processing terminated by xsl:message at line 73.
> >>
> >>[1] Sofar my command looks like: java -jar D:\saxonJ/saxon7.jar
> >>\website23\example\autolayout.xml
> \website23\xsl\chunk-tabular.xsl use.extensions=1
> >>
> >>
> >
> >Another jar file needed. Its in the 'extensions' directory of wherever
> >you loaded website (\website23\extensions\saxon64.jar ?)
> >
> >You also need some source document?
> >
> I am trying to reproduce the example that came with the website download
> (as mentioned above)
> The source to use and the stylesheet are mentioned in the documentation
> (see http://docbook.sourceforge.net/release/website/example/buildext.html)
>
> >
> >OK OK, it is the best kept secret.
> > Its just that, well maybe I could explain it by...
> > We just think that...
> > Oh shugar. Its not straightforward <chuckles/> OK>
> >
> >Keep asking.
> >
> So far I guess my makewebsite.bat should look something like:
> set CLASSPATH=D:\saxon6_5_2\saxon.jar;
> *java com.icl.saxon.StyleSheet ** *\website23\example\autolayout.xml
> \website23\xsl\chunk-tabular.xsl output-root=../web/
> *
> So how do I add Norm's stuff?
> *
>
>
>
>
>