Page 1 of 1

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

Posted: Mon Jan 14, 2013 12:26 pm
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

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

Posted: Mon Jan 14, 2013 1:21 pm
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