Subject: [xsl] Generating a <div>-toggling ID as a variable From: "Charles Muller acmuller@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 9 Jan 2017 05:32:43 -0000 |
<entry xml:id="m117"> <dictScrap> <form> <orth>g5</orth> <pron xml:lang="ja-hb">sai</pron> </form> <sense><def>A wasting disease</def></sense> </dictScrap>
<hom><re> <form><orth>g5f</orth> <pron xml:lang="ja-hb">saiyu</pron></form> <sense><def>convalescent</def></sense></re> <re><form><orth>gg5</orth> <pron xml:lang="ja-hb">rE sai</pron> </form> <sense><def>consumption</def><def>wasting</def></sense> </re> </hom>
<entry xml:id="m118"> <dictScrap><form> <orth>e5</orth> ...
function myFunction(id) { var x = document.getElementById('myDIV'); if (x.style.display == 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } }
<xsl:template match="hom"> <div id="myDIV" style="display: none"><xsl:apply-templates/></div> </xsl:template>
--------------------------- A. Charles Muller
Graduate School of Humanities and Sociology Faculty of Letters University of Tokyo 7-3-1 HongE , BunkyE -ku Tokyo 113-8654, Japan
Web Site: Resources for East Asian Language and Thought http://www.acmuller.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XSL-FO] marginal notes, Liam R. E. Quin liam | Thread | Re: [xsl] Generating a <div>-toggli, Graydon graydon@xxxx |
Re: [xsl] [XSL-FO] marginal notes, Liam R. E. Quin liam | Date | Re: [xsl] Generating a <div>-toggli, Graydon graydon@xxxx |
Month |