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)
-> + Is there a keyboard shortcut t... (2)
-> - Bug: Adding a scenario to an X... (1)
-> - Bug: Bug reporting outputs an ... (1)
-> - Tradacoms Invoice 9 Batch Quer... (1)
-> - problem with the product regis... (1)
-> + Help: Documentation... ends in... (2)
-> + How to install LIBxml2 (2)
-> - line numbers in validator outp... (1)
-> + Sharing Viollation in Stylus v... (5)
-> - support for asp.net in stylus... (1)
-> + how to use the latest java xml... (2)
-> - how to show xsd element relate... (1)
-> - Testing Stylus in a secure env... (1)
-> + How do you remove linemarkings... (3)
-> - Bug: Comment / Uncomment via C... (1)
-> + Setting escape (release) chara... (2)
-> + Xalan processor not showing up (2)
-> + Is there a keyboard shortcut t... (3)
-> - Modifying reports outside of S... (1)
-> + Run ALL Scenarios? (2)
-- Previous [421-440] [441-460] [461-480] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ 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.