Hi,
I am creating a tool to merge xml files using xslt usin
Javascript/HTML.
Basically the user browses (browse button) to where there xml file
are, then browses to where their xslt file (to perform an operation
is. Then they click an "apply" button and the result is output in
frame below.
My problem:
I have the tool working fine when I only have one input xml file (whic
is no good in a merge tool!!) but when I modify the code and ad
another xml field, the apply button will not work for two fields!
I think I haven't assigned the functions correctly to the xm
fields/apply button. Heres some of the code I suspect is wrong, but i
not sure where??
<table width="800">
<tr>
<td width="370">
XML File 1
<input type="file" size=15 id="xmlField1" >
<input type="button" value="XML Src
onClick="ApplyS tyleSheet(xmlFi eld1.value, 'defaultss.xml' );" id=xmlsr
name=xmlsrc>
XML File 2
<input type="file" size=15 id="xmlField2" >
<input type="button" value="XML Src
onClick="ApplyS tyleSheet(xmlFi eld2.value, 'defaultss.xml' );" id=xmlsr
name=xmlsrc>
</td><td> </td>
<td width="370">
XSL File
<input type="file" size=15 id="xslField">
<input type="button" value="XSL Src
onClick="ApplyS tyleSheet(xslFi eld.value, 'defaultss.xml' );" id=xslsr
name=xslsrc>
</td></tr>
<tr><td> </td>
<td width="80">
<input type="button" value="Apply
onClick="ApplyS tyleSheet(xmlFi eld1.value && xmlField2.value
xslField.value) ;">
</td><td> </td>
</tr>
</table>
Any suggestions/advice/feedback would be greatly appreciated.
Many Thanks
Ciara
cmckenna8
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message45839.htm
Comment