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
Vasileios GiannakopoulosSubject: post info to xslt
Author: Vasileios Giannakopoulos
Date: 15 Mar 2007 01:34 PM
Hello,
i have an xslt file which is the parser for xml and i have also another file in the form of:

<form id="form1" name="form1" method="post" action="">
<input type="radio" name="sex" value="1"> <label>Level 1</label>
<br/>
<input type="radio" name="sex" value="2"> <label>Level 2</label>
<br/>
<input type="radio" name="sex" value="3"> <label>Level 3</label>
<br/>
<input type="submit" name="Submit" value="Submit" />
</form>

What i want to do is when someone press the submit button to display only the level i want.

which file should i put on action=""?
my xslt file is like this:
<xsl:for-each select="ROWS/ROW">
<xsl:choose>
<xsl:when test="LEV_CODE = 1">
etc etc

so how i can do it to work? i shall put in LEV_CODE = 1 instead of 1 something else. what shall i put?
thank you for all your answers

Posttop
(Deleted User) Subject: post info to xslt
Author: (Deleted User)
Date: 16 Mar 2007 05:07 AM
Hi Vasileios,
the problem you are describing is much more complex than what your description says: the form is surely talking to a server-side script that will invoke the XSL with some parameter that will generate a different HTML page.
Focusing on the XSLT, it's enough to have the xsl:choose examine a global variable $level that the server-side script will take care of setting with the value coming from the form; depending on the (magic) value of the variable, only part of the original XML will be transformed into HTML.
But without seeing the orignal XML, the entire XSL and the type of server-side script you are using, that's the best I can tell...

Hope this helps,
Alberto

 
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.