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
jon wadSubject: DB-to-XML can only get one row insert at a time
Author: jon wad
Date: 02 Oct 2006 05:53 AM
Originally Posted: 02 Oct 2006 05:32 AM
hi,
I have followed the video tutorial db-to-xml-update.wmv @
http://www.stylusstudio.com/SSDN/upload/db-to-xml-update.wmv

and I'm wanting to process 160+ progranmme records to a mysql database table.
xml format as follows;

<programmes>
<programme>
<department>business</department>
<programme_title>bachelor of Business</programme_title>
etc...
</programme>
....
</programmes>

I have no problems with opening the datadirect link to the mysql 3.5 ODBC driver. I can create the .rdbxml file map the elements from the programmes.xml file to the created .rdbxml file, but when I run the xslt parser I get only one record showing in the preview and only one record written to the database?

How do i get all of the records into the database?

Do i need a doctype header in the xml source programmes file?

Do I have to have all the elements from the source xml file matching up with every table filed in the destination rdbms (mySQL), as I've only mapped a subset of elements from the source xml file to their relevant table field names?

The source 'programmes' xml file size is 302kb, is this to large to process, have tried cutting this into two parts but still get the same result?

The one programme record I get returned is half way down the source xml programme file list, i.e. it doesn't take the first record in the source programmes xml file?

Postnext
Ivan PedruzziSubject: DB-to-XML can only get one row insert at a time
Author: Ivan Pedruzzi
Date: 02 Oct 2006 07:30 AM
Jon,

If your XSLT generates only one "record" something is wrong with the logic.

May be you forgot to create a repeatable link in your mapping.

If you send to us the files(.xsl, .rdbxml and a sample of input XML) to stylus-field-report@progress.com we will tell you more.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
jon wadSubject: DB-to-XML can only get one row insert at a time
Author: jon wad
Date: 02 Oct 2006 03:37 PM
Ivan,
Thanks for your quick reply. please find attached the .xsl, .rdbxml and sample xml input file (shortened version).

How do I create a repeatable link in my mapping?


DocumentPROGRAMME_ALL_PART1.xml
.xml source file

Documentjaspervers4.rdbxml
.rdbxml file

Unknownjasperver4.xsl
.xsl file

Postnext
Ivan PedruzziSubject: DB-to-XML can only get one row insert at a time
Author: Ivan Pedruzzi
Date: 02 Oct 2006 03:59 PM

See the XSLT attached

Ivan Pedruzzi
Stylus Studio Team


Documentjasperver4-wtih-for-each.xsl

Postnext
jon wadSubject: DB-to-XML can only get one row insert at a time
Author: jon wad
Date: 03 Oct 2006 05:51 AM
Thanks for this Ivan.

As a newbie to xsl is their a feature in stylus studio that will input these xslt functions via some sort of intelli-sense,
or a xpath function library lookup feature?

Regards


Jon

Posttop
Ivan PedruzziSubject: DB-to-XML can only get one row insert at a time
Author: Ivan Pedruzzi
Date: 03 Oct 2006 11:04 AM
Jon,

In the mapping tool you just need to link the repeating element, in this case "PROGRAMME" to the destination repeating element, in this case "row", using the mouse right button, when the pop-up menu appears click "Create Repeatable link"

Have a look to the video tutorial
http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html
http://www.stylusstudio.com/xslt_mapper.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
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.