Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > X-Tract: Create a reformatted XLM file...

Reply
Thread Tools

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

 
 
Its Just the Devil
Guest
Posts: n/a
 
      11-07-2003
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"
xmlnss="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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie using group by in XSL on XLM shall@uaex.edu XML 6 02-17-2011 05:48 PM
XLM prolgoue fscked Python 2 01-17-2007 08:28 PM
want to add xlm to site Paul Wheeler HTML 5 09-26-2005 02:03 PM
XLM and XSLT Olivier Hoarau Python 1 11-13-2003 08:07 PM
Struts question reformatted !!! Java_Forum Java 2 09-21-2003 11:00 PM



Advertisments