You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sal Mangano <sm...@ureach.com> on 2004/03/08 18:45:17 UTC
Saxon 7 and system-property
All the info I can find about using saxon with cocoon indicates that you
merly need to replace the xalan jar with the saxon one. I did that.
However, I notice two problems:
1) My sitemap.log contains:
WARN (2004-03-08) 12:37.09:187 [sitemap.serializer.xml]
(/cocoon/abc/login) http8080-Processor4/AbstractTextSerializer: Cannot know
if transformer needs namespaces attributes - assuming NO.
org.xml.sax.SAXException: Saxon requires an XML parser that reports the
QName of each element
at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:171)
at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:129)
at
org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttr
ibutes(AbstractTextSerializer.java:355)
at
org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTex
tSerializer.java:282)
at
org.apache.cocoon.serialization.XMLSerializer.configure(XMLSerializer.java:7
6)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.
java:239)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:302)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
mitingPool.java:672)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
ol.java:402)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl
eComponentHandler.java:233)
at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.
java:410)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:246)
at
org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon
entSelector.java:296)
...
2) A test stylesheet
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/*" priority="10">
<xslt><xsl:value-of select="system-property('xsl:vendor')"/> <xsl:value-of
select="system-property('xsl:version')"/> <xsl:value-of
select="system-property('xsl:vendor-url')"/> </xslt>
</xsl:template>
</xsl:stylesheet>
produces:
<xslt>Apache Software Foundation1http://xml.apache.org/xalan-j</xslt>
Any suggestions or redirects to docs I missed would be appreciated.
-Sal Mangano
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Saxon 7 and system-property
Posted by Joerg Heinicke <jo...@gmx.de>.
Endorsed Libs? Transformer factory in cocoon.xconf?
Joerg
On 08.03.2004 18:45, Sal Mangano wrote:
> All the info I can find about using saxon with cocoon indicates that you
> merly need to replace the xalan jar with the saxon one. I did that.
>
> However, I notice two problems:
>
> 1) My sitemap.log contains:
>
> WARN (2004-03-08) 12:37.09:187 [sitemap.serializer.xml]
> (/cocoon/abc/login) http8080-Processor4/AbstractTextSerializer: Cannot know
> if transformer needs namespaces attributes - assuming NO.
> org.xml.sax.SAXException: Saxon requires an XML parser that reports the
> QName of each element
> at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:171)
> at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:129)
> at
> org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttr
> ibutes(AbstractTextSerializer.java:355)
> at
> org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTex
> tSerializer.java:282)
> at
> org.apache.cocoon.serialization.XMLSerializer.configure(XMLSerializer.java:7
> 6)
> at
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.
> java:239)
> at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
> faultComponentFactory.java:302)
> at
> org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
> mitingPool.java:672)
> at
> org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
> ol.java:402)
> at
> org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl
> eComponentHandler.java:233)
> at
> org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.
> java:410)
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
> liburComponentSelector.java:246)
> at
> org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedCompon
> entSelector.java:296)
> ...
>
> 2) A test stylesheet
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml"/>
> <xsl:template match="/*" priority="10">
> <xslt><xsl:value-of select="system-property('xsl:vendor')"/> <xsl:value-of
> select="system-property('xsl:version')"/> <xsl:value-of
> select="system-property('xsl:vendor-url')"/> </xslt>
> </xsl:template>
> </xsl:stylesheet>
>
>
> produces:
>
> <xslt>Apache Software Foundation1http://xml.apache.org/xalan-j</xslt>
>
>
> Any suggestions or redirects to docs I missed would be appreciated.
>
> -Sal Mangano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org