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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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?


input File

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.

Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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!  

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.