html - xslt grab value from other node -


I have two xslt dynamic drop-down boxes and a test statement is required which will test if another is used .

  & lt; Xsl: template match = "cat" & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when exam = (if the dog has already been selected) & lt; Select ID = "Select Cat" & gt; & Lt; Option value = "" onchange = "submitCAT ()" & gt; & Lt; Option value = "shorthair" & gt; & Lt; / Select & gt; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; Select id = "selectCAT" & gt; & Lt; Option value = "" & gt; & Lt; Option value = "long time" & gt; & Lt; / Select & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; / XSL: Templates & gt; & Lt; Xsl: template match = "dog" & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when test = (if cat has already been selected) & lt; Id = "selectDOG" & gt; Select & lt; Option value = "" onchange = "submitDOG ()" & gt; & Lt; Option value = "shorthair" & gt; & Lt; / Select & gt; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; Select id = "selectDOG" & gt; & Lt; Option value = "" & gt; & Lt; Option value = "long time" & gt; & Lt; / Select & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; / XSL: Templates & gt;  

I have two dropdowns and if only one has already been selected, then it is required to call the function. I can not understand how other drop downs Has been used.

Thank you.

I'm not sure that we can answer it unless you tell us that How are the facts stored (in XML) individually, however, I think I just test it in JavaScript - that means selectDOG / selectCAT, which options are selected and submit it selectively.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -