|
Subject: [xsl] Can u program XML in javascript? From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx> Date: Mon, 8 Jan 2001 10:07:27 +1100 |
Can anyone please tell me whether I can access certain nodes in the XML when
I'm programming javascript in it?
This is what I'm doing:
this is the XML:
<QuestionDefs>
<QuestionDef Category="Travel" Id= "departure_date" Caption="What is
your departure date?" Style="Date" Required="Quote">
<QuestionCheck Value=">Today" Message="Return date must be after
today"/>
</QuestionDef>
</QuestionDefs>
this is the XSL template:
<xsl:template match="dummy">
<CENTER><INPUT type="text" name="dDate" onChange="getDate()"/><BR/><BR/>
<INPUT type="button" name="Calendar" value="Calendar" id="ButCal"
onClick="calClick()"/>
</CENTER>
</xsl:template>
when I type in the date (onChange) I want the javascript to compare this
value to the QuestionCheck's Value attribute, and then if that's true, I
will show the message attribute.
Thanx! :)
Rosa
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Re: <?XSL?> - Oh what a t, AndrewWatt2000 | Thread | RE: [xsl] Can u program XML in java, Heather Lindsay |
| Re: [xsl] Any XSL-FO browser implem, AndrewWatt2000 | Date | [xsl] My first try at XSL..can some, Kevin Duffey |
| Month |