X-Tract: Create a reformatted XLM file...

  • Thread starter Its Just the Devil
  • Start date
I

Its Just the Devil

I have tried the online tutorials, but for some reason I am not seeing
the out files. I'm not getting any errors from X-Tract, but I'm also
not seeing any results from my .xst files.

Samples I am working with:
<!-- XML File to be reformatted 'almums_src.xml' -->
<?xml version="1.0" encoding="UTF-8"?>
<Albums>
<Row>
<RecordingID>1</RecordingID>
<RecordingTitle>two cents plus tax</RecordingTitle>
<RecordingArtistName>Versus</RecordingArtistName>
<RecordingLabel>Caroline Records</RecordingLabel>
<YearReleased>1998</YearReleased>
</Row>
<Row>
<RecordingID>2</RecordingID>
<RecordingTitle>3</RecordingTitle>
<RecordingArtistName>Led Zppelin</RecordingArtistName>
<RecordingLabel>Atlantic</RecordingLabel>
<YearReleased>1970</YearReleased>
</Row>
</Albums>

<!-- a xst file to reformat above XML file 'DisplayAlbumInfo.xst' -->

<xst xmlns="http://www.xmlscript.org/2.0"
xmlns:xs="http://www.xmlscript.org/2.0"
expression-syntax="dslpath">

<_data file="albums_src.xml" />
<_output file="AlbumInfo.xml">
<Album Artist="#\Albums\Row\RecordingArtistName#"
Recording="#\Albums\Row\RecordingName#" >
<ID >#\Albums\Row\RecordingID#"</ID >
<Label ReleaseYear="#\Albums\Row\YearReleased#">#\Albums\Row\RecordingLabel#</Label>
</Album>

</_output>
</xst>


command line: xtract DisplayAlbumInfo.xst album_src.xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top