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

Discussion in 'XML' started by Its Just the Devil, Nov 7, 2003.

  1. 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
     
    Its Just the Devil, Nov 7, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Java_Forum

    Struts question reformatted !!!

    Java_Forum, Sep 20, 2003, in forum: Java
    Replies:
    2
    Views:
    465
    James
    Sep 22, 2003
  2. Ilkka Huotari

    W3C Specs reformatted

    Ilkka Huotari, May 15, 2004, in forum: HTML
    Replies:
    7
    Views:
    688
    B r ia n
    May 15, 2004
  3. Paul Wheeler

    want to add xlm to site

    Paul Wheeler, Sep 25, 2005, in forum: HTML
    Replies:
    5
    Views:
    445
    Jim Higson
    Sep 26, 2005
  4. thj

    Start/tract scheduled tasks

    thj, Aug 11, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    443
  5. AnnMarie
    Replies:
    8
    Views:
    493
    kaeli
    Nov 21, 2003
Loading...

Share This Page