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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Vic ManfrediSubject: newbee
Author: Vic Manfredi
Date: 05 Aug 2016 02:59 PM
Hi

I am new to stylus studio and XML in general. I have an xml file that I am mapping using an xsl file and it is working great except I have multiple invoices in the original xml and when I test this it only gives me the first invoice. Also I would like to know how to group the header and line items together


DocumentSW2.xsl
xsl

Postnext
Ivan PedruzziSubject: newbee
Author: Ivan Pedruzzi
Date: 05 Aug 2016 05:13 PM
It looks like that you are not looping.

Assuming that your target repeating element is POPEnterMatchInvoiceType you will need to draw a repeatable link using right-mouse-button

from a:StockServiceOrderStatusOrderV2
to POPEnterMatchInvoiceType

I am guessing that the same is needed for the order line items

from a:StockServiceOrderStatusShipmentItemV2
to taPopEnterMatchInvLine



Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Vic ManfrediSubject: newbee
Author: Vic Manfredi
Date: 05 Aug 2016 05:34 PM
thanks for the response didn't know about the right click,.

I am getting this error now when I go to run it
C:\Users\vic\Desktop\New folder\SW2.xsl (5,4): error: Unexpected token '<eof>' in the expression.
C:\Users\vic\Desktop\New folder\SW2.xsl (7,5): error: Unexpected token '<eof>' in the expression.


DocumentSW2(1).xsl
xls file

Postnext
Ivan PedruzziSubject: newbee
Author: Ivan Pedruzzi
Date: 05 Aug 2016 05:57 PM
It seems you have created a bunch for-each without select expression.

<xsl:for-each select=""/>


If you post as attachment source and target it will go faster

Ivan

Postnext
Vic ManfrediSubject: newbee
Author: Vic Manfredi
Date: 05 Aug 2016 06:02 PM
thanks so much for your help


Unknownsource(4).xml


Unknowntarget(1).xml

Postnext
Ivan PedruzziSubject: newbee
Author: Ivan Pedruzzi
Date: 05 Aug 2016 08:09 PM

I don't know enough about the semantic but this XSLT should get you started



Ivan Pedruzzi
Stylus Studio Team


DocumenttoEConnect.xsl
g:\SSDN\vic@affordable-it.com\toEConnect

Postnext
Vic ManfrediSubject: newbee
Author: Vic Manfredi
Date: 06 Aug 2016 12:05 PM
Originally Posted: 06 Aug 2016 11:54 AM
thanks! I downloaded that and ran it in Visual Studio 2015 and I got this error

Attempt by method 'System.Xml.Xsl.XslCompiledTransform.Load(System.Type)' to access field 'System.Xml.Xsl.CompiledQuery.Query.staticData' failed.

Posttop
Ivan PedruzziSubject: newbee
Author: Ivan Pedruzzi
Date: 06 Aug 2016 04:04 PM

The error has nothing to do with the XSLT.

I tested with XslCompiledTransform which is the .Net XSLT processor and it runs fine.

You will need to look somewhere else for what is causing the error.

Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 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.