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 (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.