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
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