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 (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Posttop
Matt HandSubject: Tradacoms Invoice 9 Batch Query ILD / ODD Segments
Author: Matt Hand
Date: 20 Dec 2010 09:22 AM
I am experiencing problems using XSLT map to output a Tradacoms Invoice 9 document, the issue is......

We will be receiving a multi invoice xml document that needs to be mapped into the tradacoms invoice 9 batch but the line numbers are automatically returning to 1 even though the ODD segment should start at one and be incremented after each loop this is also happening on the ILD segments, we are expecting the folowing:

ODD=1
ILD=1+1
ILD=1+2
ILD=1+3
ODD=2
ILD=2+1
ILD=2+2
and so on

Actual output below

IRF=FFSI-00000324+101215+101215'
ODD=1+4850349362:::+SALESSHIP00110:'
ILD=1+1+5000000000001:A8301:+++6+21::+127500+2677500+Z+0000+++'
ILD=1+2+5000000000002:A8551:+++6+17::+232500+3952500+Z+0000+++'
ILD=1+3+5000000000003:A8305:+++6+36::+147000+5292000+Z+0000+++'
ILD=1+4+5000000000004:A8306:+++6+16::+147000+2352000+Z+0000+++' ILD=1+5+5000000000005:A8552:+++6+11::+138000+1518000+Z+0000+++' ILD=1+6+5000000000009:A9999:+++2+3::+999900+2999700+S+17500+++' STL=1+Z+0000+5+157920+++++157920++157920+000+157920+157920'
STL=2+S+17500+1+29997+++++29997++29997+5249+35246+35246'
TLR=2+187917+++++187917++187917+5249+193166+193166'
MTR=14'
MHD=3+INVOIC:9'
CLO=Record
IRF=FFSI-00000325+101215+101215'
ODD=1+0250395186:::+SALESSHIP00098:'
ILD=1+1+5000000000001:A8301:+++6+33::+127500+4207500+Z+0000+++' ILD=1+2+5000000000002:A8551:+++6+14::+232500+3255000+Z+0000+++' ILD=1+3+5000000000003:A8305:+++6+54::+147000+7938000+Z+0000+++' ILD=1+4+5000000000004:A8306:+++6+13::+147000+1911000+Z+0000+++' ILD=1+5+5000000000005:A8552:+++6+10::+138000+1380000+Z+0000+++' STL=1+Z+0000+5+186915+++++186915++186915+000+186915+186915'
TLR=1+186915+++++186915++186915+000+186915+186915'
MTR=12'
MHD=4+INVOIC:9'

Regards


UnknownNoname(55).

   
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.