XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
David StandenSubject: Need help with XML mapping - Please feel free to chip in with any comments
Author: David Standen
Date: 20 Oct 2009 06:43 PM
I have a data file that is in XML format. I have an xsd that I wish to map the xml file to. However, whenever I try to run the xslt all I get is the very first record.

It does not seem to matter what I do and it is driving me to despair. I am obviously doing something wrong - Can anyone help me by showing what I should be doing.

I have attached a Winzip file containing the following:
01sample.xml - The data to be mapped
INIS_Atomindex_DTD_v24.dtd - The dtd file (should you need it)
IPDatabaseSchema.xsd - The file containing the mapping fields.

I am sure that I am missing something very simple, but lack of experience with the Stylus Studio package (2009 trial) is an issue I have not time to resolve by trial and error (mostly error).

Assuming that someone can get this to work, how do I go about actually outputting the data from the mapping into a final XML file?

Since I am asking - Can Stylus Studio be told to work its way through an entire folder of XML source files or is it just one at a time?

Many many many thanks in advance,


David


DocumentINISXML(1).zip
Winzip container with sample files

Posttop
(Deleted User) Subject: Need help with XML mapping - Please feel free to chip in with any comments
Author: (Deleted User)
Date: 29 Oct 2009 01:37 PM
Hi David,
if you are getting just the first record, you are probably missing a xsl:for-each statement at the top of the stylesheet, or using absolute paths instead of relative ones.
After you have designed the XSLT stylesheet using Mapper's help, the XSLT can be executed by a processor (like Saxon) from within Stylus, or from a command line; in the latter case you can instruct the processor to work on all the files of a folder.

Have a look at http://www.stylusstudio.com/xml_to_xml_mapper.html for a few tutorial on how to use Mapper.

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.