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)
-> + predefined macros ${ (4)
-> - TRADACOMS - EDI (1)
-> + SUM not working (3)
-> - Large xml file handling gives ... (1)
-> + 2011 Enterprise code folding f... (9)
-> + custom xml converter (3)
-> - Start Excel feter the mapping ... (1)
-> + Uninstall (2)
-> + xpath to compare two values fr... (2)
-> - xpath to compare two values fr... (1)
-> + SS2011 cannot save XML files u... (3)
-> + SS 2011 Enterprise saying 2010... (2)
-> + How to change the way whitespa... (7)
-> + Updating Relational Data Using... (4)
-> - Contract Stylus Studio help. ... (1)
-> + UTF_8 characters not displayed (6)
-> + Problem XSL to PDF ( dont reco... (2)
-> + HIPAA EDI - Looping question (4)
-> - HIPAA EDI - Looping question (1)
-> + Does XML Report support column... (2)
-- Previous [481-500] [501-520] [521-540] 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  
Postnext
Jon GallegosSubject: Saxon Assign
Author: Jon Gallegos
Date: 08 Sep 2010 09:38 AM
Originally Posted: 08 Sep 2010 09:36 AM
I am having problems with saxon:assign . It does not seem to be working for me.

Am I using the correct XMLNS?
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" >

I have also attached my xsl
I assign the variable on line 269
I modify the variable using saxon:assign on line 280
Currently i am just testing it to get it to work.

I am planning on using in this manner;
I read a line from the imput file, store field5 in a variable and print the line
then i read the second line in the imput file, check to see if field5 is the same as the variable.
If it is the same, I will read line three
If it is different, I will update the variable and print the line

Again, this code is not in the XSL because I am testing to see if I can get saxon:assign to work first

Can you please help?


UnknownNAPLMTcMSEi.xsl
XSL

UnknownPDDA_GMSUnit_for2012_09012010(1).csv
input File

Posttop
Tony LavinioSubject: Saxon Assign
Author: Tony Lavinio
Date: 17 Sep 2010 11:43 AM
Three things:

1. For saxon-specific questions, you might want to post on the saxon-help mailing list. The original author himself monitors that list, and he is the best resource. See https://lists.sourceforge.net/lists/listinfo/saxon-help

2. The namespace you are using in xmlns:saxon is for Saxon 6.5. I assume you are using Saxon 9? See http://www.saxonica.com/documentation/extensions/intro.html

3. saxon:assign is almost always the wrong way to do something. Although the description is at http://www.saxonica.com/documentation/extensions/instructions/assign.html, digging on xsl-list will show that it is generally frowned upon, and there is some debate over whether it will be removed.

   
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.