Is there a package to transform XML using XSLT?


#1

Is there a package to transform XML using XSLT?

If not, I’ll create it, but just checking.


#2

There is now an atom package to transform XML documents using XSLT:


#3

When you install the package, where are you supposed to find it in Atom? I can’t find it and I would assume you could select your xml and xslt file to use.

I’m using OS X Yosemite.


#4

Some documentation in the readme would be nice.


#5

Thanks for the feedback.

I have updated the readme to give some instructions to use it with a couple of screen shots.

I didn’t put much around it originally, it scratched an itch for me at the time, and I wanted to share it with others.

Let me know if you need any more details. :smile:


#6

Thanks for your recent updates to this! Could you please give a bit more detail about how to point to your external transformer? Where does this information go? I currently have an embedded copy (saxon.jar) of saxon in my Oxygen directory.


#7

I’ll download oxygen and check what is needed to get it working.

Which OS are you using?


#8

I use Windows 7.

I used the command line

java -jar c:/saxon/saxon9ee.jar -s:%XSL -xsl:%XML

having made a copy of the jar in its own directory for testing. Works on command line but not through ATOM.

Many thanks


#9

You can use spaces in filenames by adding quotes around the parameters. Eg:

java -jar c:/saxon/saxon9ee.jar -s:"%XML" -xsl:"%XSL"

#10

Hi,

Did you get this to work? Noticing that on your java command you’ve swapped the XML and XSL input “files”.

java -jar c:/saxon/saxon9ee.jar -s:%XSL -xsl:%XML

should be:

java -jar c:/saxon/saxon9ee.jar -s:"%XML" -xsl:"%XSL"

(like russ said)