Hi,
I hope someone can help. I'm looking to convert a fixed input .xml file into a defined .txt file using an .xsl to transform some of the fields.
My .xml is;
<Pharos><Material><Owner><Name>Scripps Networks International</Name></Owner><MatId>TC-34982-A-01</MatId><Duration>00:46:33:00</Duration><Title>Mysteries At The Museum</Title><SubTitle /><MaterialType>Movie</MaterialType><VersionType>TX</VersionType><AspectRatio /><TrackTypeLink><TrackTypeName>Video</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Stereo German</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Hungarian</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Russian</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Mono (Eng Track Sub)</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Stereo English</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Polish</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Stereo Turkish</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Bulgarian</TrackTypeName></TrackTypeLink><TrackTypeLink><TrackTypeName>Mono Czech</TrackTypeName></TrackTypeLink><Track><InTimeCode>09:59:30:00</InTimeCode><OutTimeCode>10:46:03:00</OutTimeCode><StartOfMedia>10:00:00:00</StartOfMedia><FileId>TC-34982-A-01</FileId><MediaName>ArqivaObjectId</MediaName></Track></Material><ImportMetaData><Note>This is a test import</Note></ImportMetaData></Pharos>
The result I would like to create is;
CLIPclip_id TC-34982-A-01
title Mysteries At The Museum
tape TC-34982-A-01
type PROG_NOT_QCD
tc_in 09:59:30:00
tc_out 10:46:03:00
aspect_ratio 2
active_region 1
clip_unavail 1
end
end
where the fields
clip_id
title
tape
tc_in
tc_out
Are dynamically linked to the input .xml file. The other fields are always fixed
--It sounds simple, but most information I can find only creates html through .xsl
Many thanks in advance