xml - XSLT: Reuse a template within another template -
i have xslt file displays title , artist name of cd. have 3 templates, first template displays title, second template displays artist name, , third template contains hidden table. hidden table displayed using checkbox. want reuse title , artist templates in order show them table data inside third template when visible. the problem third template doesn't show on browser because don't know assign match attribute. highly appreciated. thanks. expected result: http://oi61.tinypic.com/6ibkur.jpg ![1] index.html <html> <head> <script> function loadxmldoc(filename) { if (window.activexobject) { xhttp = new activexobject("msxml2.xmlhttp"); } else { xhttp = new xmlhttprequest(); } xhttp.open("get", filename, false); try {xhttp.responsetype = "msxml-document"} catch(err) {} // helping ie11 xhttp.send(""); return xhttp.responsexml; } function displayresult() { xml = loadxmldoc("cdcatalog.xml"); xsl ...