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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
jhon smithSubject: Convert xml to Spss syntax
Author: jhon smith
Date: 21 Sep 2006 04:57 AM
Hi everybody!
I spend a lot of time editing Spss syntaxes at my work in order to verify the logical structure of data exported from online questionnaires. I hope I can use the xml source code of each questionary and with Stylus to parse it into spss syntax. As an example, what looks like this in xml:
<Expression>f('m24q1') == '1' || f('m24q1') == '2'</Expression>
to appear in this manner in my spss syntax:
SELECT IF m24q1 = 1 OR m24q1 = 2.
So far, with xQuary expressions I manage to filter nodes I need (e.g. //TrueNodes//Expression - which gives me all the nodes containing the logical conditions for each question).
What should I do next? Can it be done with Stylus?

Posttop
(Deleted User) Subject: RE: Convert xml to Spss syntax
Author: (Deleted User)
Date: 21 Sep 2006 08:00 AM
The XML representation is not very XMLish. See fMathML for an example
of using XML to represent formula.



This format is one XML element with some text in it. The text content
needs to be parsed into tokens then reconstituted into the text output.



The Book XSLT Cookbook has some examples of tokenizing a string. There
are also resources on



XSLT FAQ http://www.dpawson.co.uk/xsl/sect2/sect21.html

Jeni Tennison http://www.jenitennison.com/xslt/



Greg Alvord

615-221-7379

________________________________

From: stylus-studio-xslt Listmanager
[mailto:stylus-studio-xslt.listmanager@stylusstudio.com]
Sent: Thursday, September 21, 2006 4:00 AM
Subject: Convert xml to Spss syntax



From: "jhon smith" <dreamlike_2006@yahoo.com>

Hi everybody!
I spend a lot of time editing Spss syntaxes at my work in order to
verify the logical structure of data exported from online
questionnaires. I hope I can use the xml source code of each questionary
and with Stylus to parse it into spss syntax. As an example, what looks
like this in xml:
<Expression>f('m24q1') == '1' || f('m24q1') == '2'</Expression>
to appear in this manner in my spss syntax:
SELECT IF m24q1 = 1 OR m24q1 = 2.
So far, with xQuary expressions I manage to filter nodes I need (e.g.
//TrueNodes//Expression - which gives me all the nodes containing the
logical conditions for each question).
What should I do next? Can it be done with Stylus?



--
To reply:stylus-studio-xslt.16845@stylusstudio.com
To start a new topic:stylus-studio-xslt@stylusstudio.com
To login:http://www.stylusstudio.com/SSDN/
To (un)subscribe:stylus-studio-xslt.list-request@stylusstudio.com

 
Topic Page 1 2 3 4 5 6 7 8 9 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!  
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.