You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Echoes <ec...@free.fr> on 2001/01/30 16:34:05 UTC

Strange XSL issue

  Hello,

  I'm working with cocoon 1.8, xalan 1.2.2 and xerces 1.2.3

  When applying a stylesheet on a document with cocoon, I get
the following error (partial stack trace) :


                     org.w3c.dom.DOMException: DOM002 Illegal character
                             at
org.apache.xerces.dom.DocumentImpl.createAttribute(DocumentImpl.java:427)
                             at
org.apache.xerces.dom.ElementImpl.setAttribute(ElementImpl.java:445)
                             at
org.apache.xalan.xpath.xml.FormatterToDOM.startElement(FormatterToDOM.java:258)
                             at
org.apache.xalan.xslt.XSLTEngineImpl.flushPending(XSLTEngineImpl.java:4018)
                             at
org.apache.xalan.xslt.XSLTEngineImpl$ResultTreeHandler.endElement(XSLTEngineImpl.java:4112)
                             at
org.apache.xalan.xslt.ElemElement.execute(ElemElement.java:207)
                             at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java:661)
                             at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement.java:1199)
                             at
org.apache.xalan.xslt.ElemTemplateElement.transformSelectedChildren(ElemTemplateElement.java:962)
                             at
org.apache.xalan.xslt.ElemForEach.execute(ElemForEach.java:134)
                             at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java:661)
                             at
org.apache.xalan.xslt.ElemLiteralResult.execute(ElemLiteralResult.java:254)
                             at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java:661)
                             at
org.apache.xalan.xslt.ElemLiteralResult.execute(ElemLiteralResult.java:254)
                             at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java:661)
                             at
org.apache.xalan.xslt.ElemLiteralResult.execute(ElemLiteralResult.java:254)
                             at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElement.java:661)
                             at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement.java:1199)
                             at
org.apache.xalan.xslt.ElemTemplateElement.processLocatedNode(ElemTemplateElement.java:1061)
                             at
org.apache.xalan.xpath.SimpleNodeLocator.findChildren(SimpleNodeLocator.java:773)
                             at
org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java:428)
                             at
org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java:321)
                             

And if I use Xalan as a command line tool,it works like a charm. With
cocoon it seems to
chock on a <xsl:for-each select="/root/elem"> inside a template.
If i use <xsl:for-each select="root/elem"> I get no error, but no
results also :-(

 Any suggestion welcome !

	Eugène