cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oskar Casquero" <jtaca...@bi.ehu.es>
Subject Re: Weird Saxon errors
Date Mon, 18 Nov 2002 10:49:21 GMT
Here you have XML/XSLT combination. Can you tell me the steps you followed
to setup saxon role?

Thanks,
Oskar

----- Original Message -----
From: "SAXESS - Hussayn Dabbous" <dabbous@saxess.com>
To: <cocoon-users@xml.apache.org>
Sent: Monday, November 18, 2002 11:40 AM
Subject: Re: Weird Saxon errors


> Hy;
>
> I got exactly the same problems as you describe. Finnally i managed
> to setup my system for operation. Unfortunately i had lots of
> interconnected problems, so i can't tell you, what finally solved
> exactly the problem, you are describing.
> I had a look into your problem, but couldn't reprocuce it so far
> from the data in your email. But if you send me a small XML/XSLT
> combination that triggers this problem, i will check this against my
> cocoon-2.0.3/saxon-6.5.2 setup and uncover the cause of the problem.
>
> This is, what i can offer so far.
>
> regards, hussayn
>
> Oskar Casquero wrote:
> > Jeremy, I have got exactly the same problem when I use saxon 6.5.2 with
> > cocoon 2.0.3 or cocoon 2.1 (invalid processing instruction name
> > (saxon:warning) at line 13 column -1 (what column is that?)). I have
> > configured saxon role in the same way as you (as described in
> > http://outerthought.net/wiki/Wiki.jsp?page=DocbookTransformation) and I
know
> > that the xslt stylesheet is correct because I have tested it with xalan.
> >
> > Does anyone know how to solve this problem?
> >
> > Oskar
> >
> > ----- Original Message -----
> > From: "Jeremy Quinn" <jeremy@media.demon.co.uk>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Saturday, November 16, 2002 3:26 PM
> > Subject: Weird Saxon errors
> >
> >
> >
> >>I just switched to using Saxon 6.5.2 with Cocoon 2.1-dev as lots of
> >>people say it is faster than xalan and xsltc.
> >>
> >>I get lots of strange errors in my stylesheets, that I cannot work out.
> >>These are stylesheets that are largely trivial, and work fine in Xalan
> >>and XSLTC.
> >>
> >>Has anyone else noticed this kind of behaviour?
> >>
> >>Example:
> >>
> >>org.apache.cocoon.ProcessingException: Could not read resource
> >>file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/components/
> >>meta-data.xml:
> >>file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/xsl/macro-
> >>filter.xsl:12:-1:javax.xml.transform.TransformerException: Invalid
> >>processing instruction name (saxon:warning)
> >>
> >>this is line 12, column -1 (sic)
> >>
> >><?xml version="1.0"?>
> >>
> >><xsl:stylesheet version="1.0"
> >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>xmlns:saxon="http://icl.com/saxon"
> >>exclude-result-prefixes="saxon"
> >> >
> >>
> >><xsl:param name="idref"/>
> >>
> >><xsl:template match="doc">
> >><xsl:apply-templates select="macro[@id=$idref]/*"/>
> >></xsl:template>
> >>
> >>   <xsl:template match="@*|node()"
> >>priority="-2"><xsl:copy><xsl:apply-templates
> >>select="@*|node()"/></xsl:copy></xsl:template>
> >>   <xsl:template match="text()" priority="-1"><xsl:value-of
> >>select="."/></xsl:template>
> >>
> >></xsl:stylesheet>
> >>
> >>Where line 12 is:
> >>
> >><xsl:template match="@*|node()"
> >>priority="-2"><xsl:copy><xsl:apply-templates
> >>select="@*|node()"/></xsl:copy></xsl:template>
> >>
> >>Do What???
> >>There is nothing wrong with this line according to the other XSLT
> >>engines.
> >>Invalid processing instruction??????
> >>
> >>
> >>This is my config:
> >>
> >>in cocoon.xconf:
> >>
> >>   <xslt-processor logger="core.xslt-processor">
> >>      <parameter name="use-store" value="false"/>
> >>      <parameter name="incremental-processing" value="true"/>
> >>   </xslt-processor>
> >>
> >>   <component
> >>     role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon"
> >>     class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
> >>     logger="core.xslt-processor">
> >>    <parameter name="use-store" value="true"/>
> >>    <parameter name="incremental-processing" value="false"/>
> >>    <parameter name="transformer-factory"
> >>     value="com.icl.saxon.TransformerFactoryImpl"/>
> >>   </component>
> >>
> >>in sitemap.xmap:
> >>
> >><map:transformer logger="sitemap.transformer.saxon" name="saxon"
> >>   pool-grow="2" pool-max="32" pool-min="8"
> >>        src="org.apache.cocoon.transformation.TraxTransformer">
> >>  <use-request-parameters>false</use-request-parameters>
> >>  <use-browser-capabilities-db>false</use-browser-capabilities-db>
> >>  <xslt-processor-role>
> >>         org.apache.cocoon.components.xslt.XSLTProcessor/Saxon
> >>       </xslt-processor-role>
> >></map:transformer>
> >>
> >>
> >>Any suggestions would be gratefully accepted.
> >>
> >>regards Jeremy
> >>
> >>
> >>---------------------------------------------------------------------
> >>Please check that your question  has not already been answered in the
> >>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >>
> >>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> >>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
>
> --
> Dr. Hussayn Dabbous
> SAXESS Software Design GmbH
> Neuenhöfer Allee 125
> 50935 Köln
> Telefon: +49-221-56011-0
> Fax:     +49-221-56011-20
> E-Mail:  dabbous@saxess.com
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>

Mime
View raw message