Subject: Re: [xsl] page range in Reference From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 26 Jan 2020 18:10:33 -0000 |
Below is my inputB and required output xml. Need to all dot, columns(:) in outside elements will be same to go output xml. I am strugglingB how to manage page range tag ( <fpage>752</fpage>–<lpage>8</lpage>) in output reference.
<mixed-citation><person-group person-group-type="author"><string-name><surname>Kie</surname> <given-names>DW</given-names></string-name>, <string-name><surname>Doon</surname> <given-names>E</given-names></string-name>, <etal>et al.</etal></person-group> <article-title>Gestational how much is enough</article-title>
<year>2007</year>;<volume>110</volume>:<fpage>752</fpage>–<lpage>8</lp age>.</mixed-citation>
Required Output:
<mixed-citation><string-name><surname>Kie</surname> <given-names>DW</given-names></string-name>, <string-name><surname>Doon</surname> <given-names>E</given-names></string-name>, <etal>et al.</etal> <article-title>Gestational how much is enough</article-title>
<year>2007</year>;<volume>110</volume>:<page-range>752-8</page-range>.</mixed -citation>
Do you know that any mixed-citation element will have those child nodes <fpage>...</fpage>–<lpage>...</lpage> ? Should be easy to set up
<xsl:template match="fpage"> <page-range> <xsl:value-of select="., following-sibling::lpage" separator="-"/> </page-range> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] page range in Reference, Byomokesh Sahoo saho | Thread | |
[xsl] page range in Reference, Byomokesh Sahoo saho | Date | |
Month |