The requested initial template ...... does not exist

Here should go questions about transforming XML with XSLT and FOP.
SATE
Posts: 1
Joined: Mon Jan 14, 2013 11:58 am

The requested initial template ...... does not exist

Post by SATE »

Hi

I need to develop a csv to xml converter. I found a good example to start with here http://andrewjwelch.com/code/xslt/csv/c ... ml_v2.html and pasted it in the editor window.

I created a simple csv-file.

Both files are on D:\dev\

Now I need to set up a scenario in Oxygen and I have tried to apply the parameters from the saxon instruction on the page mentioned above but I must do something wrong.

New -> XSLT Transformation
XSL URL = ${currentFilePath}
-it = D:\dev\csv-to-xml.xslt
pathToCSV = 'file:///D:/dev/csv.csv'

When I click "Apply associated" there are 2 error lines in the "Transformation problems" tab stating "E[Saxon-PE 9.4.0.4] The Requested initial template, with expanded name D:\dev\csv-to-xml.xslt, does not exist"

I have tried different locations, different path/uri formats and so on but always the same message.

Any idea?

// Svante
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: The requested initial template ...... does not exist

Post by adrian »

Hello,

Note that -it ("inital template") should point to a template name, NOT a stylesheet filename.
e.g.
mystylesheet.xsl

Code: Select all

<xsl:template name="main">
...
-it = main

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply