Subject: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?
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