Skip to main content
Question

How to read xml by xslt file?

  • March 22, 2021
  • 2 replies
  • 23 views

sprongandre
Forum|alt.badge.img

It is possible to read a xml and 'style' it with a xslt file. I've read on the forum FME can only read version 1.0 of the xslt-file.

When I try to do this I get an error (creator + xsltprocessor) and i don't know how to fix this/what the error is?

 

Who can help me? :-)

 

Thanks!

 

I've attached an example xml and xslt file + the belonging output (created by the default program...I just want to automate it).

2 replies

nampreetatsafe
Safer
Forum|alt.badge.img+13

Hi @sprongandre​ - It looks like your xslt file is version 2.0 according to https://www.altova.com/manual/XMLSpy/spyenterprise/fxaltova_chartfunctionssexample.html

 

As you mentioned, FME only supports xslt version 1.0 and as mentioned in this Forums post. And as it mentions there, we are unable to support later version at the moment, sorry!

 

I've created a request for the development team to see if we can provide better messaging in the log instead of an abrupt "Error running translation"xslt 2 error log


sprongandre
Forum|alt.badge.img
  • Author
  • March 24, 2021

Hi @sprongandre​ - It looks like your xslt file is version 2.0 according to https://www.altova.com/manual/XMLSpy/spyenterprise/fxaltova_chartfunctionssexample.html

 

As you mentioned, FME only supports xslt version 1.0 and as mentioned in this Forums post. And as it mentions there, we are unable to support later version at the moment, sorry!

 

I've created a request for the development team to see if we can provide better messaging in the log instead of an abrupt "Error running translation"xslt 2 error log

Hi @nampreetatsafe​ , thanks for your answer! I thought I've received a 1.0 version...not... ;-S

I asked again for a 1.0 version and now I received the right one...I can read it in...but next question>>How can I output it to a pdf as the example in my earlier attachment?

 

In this attachment the xslt_version 1.0-file