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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1168)
+ Stylus Studio Technical Forum (14386)
+ Website Feedback (244)
- XSLT Help and Discussion (7583)
-> + Use of before and after string (3) Sticky Topic
-> - how to change format of the da... (1)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> - newbee (8)
-> ->newbee
-> ->newbee
-> ->newbee
-> ->newbee
-> ->newbee
-> ->newbee
-> ->newbee
-> + How to substitute element or t... (2)
-> + Xalan support in x16? (2)
-> + The context item for axis step... (5)
-> - ASP to XSL (1)
-> + xsl report, with xml feed, SVG... (4)
-> + XSLT code to transform CSV typ... (2)
-> + Make xstl file working in brow... (4)
-> + identity template, result-docu... (6)
-> - identity template and xsl:resu... (1)
-> + java.lang.RuntimeException: Er... (5)
-> + How to check matching parenthe... (2)
-> - Error only on using xalan:eval... (1)
-> + XSLT not displaying SOAP respo... (2)
-> + How do i delete the node from ... (2)
-> + How to break xslt lines to mak... (4)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (1941)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (363)
+ Stylus Studio Announcements (113)
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

   
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.