Hello,
I am working with Altova StyleVision for ease of use while creating xslt
files. (A visual designer for that is needed, at least for our customers.)
Now when I try to create a new Transformer with TransformerFactorys
method newTransformer, I receive the following error:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Die Funktion konnte nicht
gefunden werden: empty
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:683)
at
de.mmorpg.service.impl.ReportWriterAFOPImpl.ReportAccountOverview(ReportWriterAFOPImpl.java:52)
at
de.mmorpg.executable.TestingWriteReports.main(TestingWriteReports.java:41)
Caused by: javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Die Funktion konnte nicht
gefunden werden: empty
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:807)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:666)
... 2 more
Caused by: javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Die Funktion konnte nicht
gefunden werden: empty
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:803)
... 3 more
Caused by: javax.xml.transform.TransformerException: Die Funktion konnte
nicht gefunden werden: empty
at
org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:768)
at
org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1404)
at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1600)
at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:342)
at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:267)
at
org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:77)
at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:600)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:795)
... 3 more
---------
[... much more similar expections here - if needed, just say it and I
will send them.]
---------
; Line#: 147; Column#: 128
; Line#: 147; Column#: 128
javax.xml.transform.TransformerException: Die Funktion konnte nicht
gefunden werden: empty
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:602)
at
org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1449)
at
org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1388)
at
org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1287)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1220)
at
org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1178)
at
org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1084)
at
org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1005)
at
org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:947)
at
org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:872)
at
org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:812)
at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:776)
at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:749)
at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:732)
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:125)
at org.apache.xpath.XPath.<init>(XPath.java:162)
at
org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:129)
at
org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:761)
at
org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1404)
at
org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1600)
at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:342)
at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:267)
at
org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:77)
at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:600)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:795)
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:666)
at
de.mmorpg.service.impl.ReportWriterAFOPImpl.ReportAccountOverview(ReportWriterAFOPImpl.java:52)
at
de.mmorpg.executable.TestingWriteReports.main(TestingWriteReports.java:41)
"Die Funktion konnte nicht gefunden werden: empty" can be translated to
"this function could not be found: empty"
The xslt-block with "empty" in it is thise one:
<xsl:template match="altova:inline-container-substitute"
mode="second-step">
<xsl:choose>
<xsl:when test="empty(for $i in child::node() return
index-of(('fo:block','fo:block-container','fo:list-block'),name($i)))">
<fo:inline>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="second-step"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<fo:block>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="second-step"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template
I tried to find more information about this at the FOP-site and Google,
but either I am on a completly wrong path or I am just using the wrong
search terms. To cut a long story short: I appreciate any clues that
help me solve this issue.
FOP version is 0.94, jre1.5.0_07.
Regards,
Tobias Wehrum
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]