I have the following error while transforming xslt to pdf...
Error at xsl:sequence on line 68 column 103 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 68 near {...( $altova:ext-chart-setting...}:
Cannot find a matching 1-argument function named
{http://www.altova.com/xslt-extensions}create-chart-config-from-xml()
Error at xsl:sequence on line 72 column 158 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 72 near {...L1/Document/Chart/Year/Rate...}:
Cannot find a matching 3-argument function named
{http://www.altova.com/xslt-extensions}create-chart-data-series()
Error at xsl:variable on line 75 column 145 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 75 near {...:nodeChartDataset0), false(...}:
Cannot find a matching 3-argument function named
{http://www.altova.com/xslt-extensions}create-chart()
Error at xsl:variable on line 76 column 317 of test2.xsl:
XPST0017 XPath syntax error at char 130 on line 76 near {...'sv_chart', 1, 1, '' ), '.p...}:
Cannot find a matching 4-argument function named
{http://www.altova.com/xslt-extensions}generate-auto-number()
Error at xsl:variable on line 79 column 208 of test2.xsl:
XPST0017 XPath syntax error at char 24 on line 79 near {...thPx, $altova:nChartHeightP...}:
Cannot find a matching 4-argument function named
{http://www.altova.com/xslt-extensions}save-chart-image()
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 5 errors detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:220)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:135)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:90)
at com.mnyl.scopp.fop.XML2PDF.getPdfFile(XML2PDF.java:89)
at com.mnyl.scopp.fop.XML2PDF.main(XML2PDF.java:45)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The namespace of the extension functions is in the www.altova.com domain, so presumably they were designed to run in Altova, not in Saxon. I don't know if it is possible to use these extension functions in Saxon. If Altova's documentation suggests that it is possible, then the problem is likely to be (a) you're not using Saxon-PE or higher, or (b) the license file isn't being found, or (c) the extension functions aren't on the classpath. Running with the -TJ option will help to distinguish between these possibilities.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using these jar files saxon9ee, saxon9-sql, saxon9-unpack to generated xsl-fo to PDF. It is working fine. But while generated chart through saxon it display XPath syntax error. So please tell me which xpath jar file need to generate chart in saxon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your stylesheet is making calls on Altova libraries which are not part of Saxon. I do not know anything about these libraries and I have no idea if they will work with Saxon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the following error while transforming xslt to pdf...
Error at xsl:sequence on line 68 column 103 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 68 near {...( $altova:ext-chart-setting...}:
Cannot find a matching 1-argument function named
{http://www.altova.com/xslt-extensions}create-chart-config-from-xml()
Error at xsl:sequence on line 72 column 158 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 72 near {...L1/Document/Chart/Year/Rate...}:
Cannot find a matching 3-argument function named
{http://www.altova.com/xslt-extensions}create-chart-data-series()
Error at xsl:variable on line 75 column 145 of test2.xsl:
XPST0017 XPath syntax error at char 0 on line 75 near {...:nodeChartDataset0), false(...}:
Cannot find a matching 3-argument function named
{http://www.altova.com/xslt-extensions}create-chart()
Error at xsl:variable on line 76 column 317 of test2.xsl:
XPST0017 XPath syntax error at char 130 on line 76 near {...'sv_chart', 1, 1, '' ), '.p...}:
Cannot find a matching 4-argument function named
{http://www.altova.com/xslt-extensions}generate-auto-number()
Error at xsl:variable on line 79 column 208 of test2.xsl:
XPST0017 XPath syntax error at char 24 on line 79 near {...thPx, $altova:nChartHeightP...}:
Cannot find a matching 4-argument function named
{http://www.altova.com/xslt-extensions}save-chart-image()
javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 5 errors detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:220)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:135)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:90)
at com.mnyl.scopp.fop.XML2PDF.getPdfFile(XML2PDF.java:89)
at com.mnyl.scopp.fop.XML2PDF.main(XML2PDF.java:45)
Hi Michael,
Please help me to resolve the above mentioned issue/error for generated the chart in PDF output using Saxon 9 EE....
The namespace of the extension functions is in the www.altova.com domain, so presumably they were designed to run in Altova, not in Saxon. I don't know if it is possible to use these extension functions in Saxon. If Altova's documentation suggests that it is possible, then the problem is likely to be (a) you're not using Saxon-PE or higher, or (b) the license file isn't being found, or (c) the extension functions aren't on the classpath. Running with the -TJ option will help to distinguish between these possibilities.
Hi Michael,
I am using these jar files saxon9ee, saxon9-sql, saxon9-unpack to generated xsl-fo to PDF. It is working fine. But while generated chart through saxon it display XPath syntax error. So please tell me which xpath jar file need to generate chart in saxon.
Your stylesheet is making calls on Altova libraries which are not part of Saxon. I do not know anything about these libraries and I have no idea if they will work with Saxon.