[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

page range in Reference

Subject: page range in Reference
From: "Byomokesh Sahoo sahoo.byomokesh@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Jan 2020 16:52:00 -0000
 page range in Reference
Hi,

Below is my input  and required output xml. Need to all dot, columns(:) in
outside elements will be same to go output xml. I am struggling how to
manage page range tag ( <fpage>752</fpage>&#x2013;<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>&#x2013;<lpage>8</lpage>.</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>

My XSLT:

 <xsl:template match="mixed-citation">
<xsl:element name="mixed-citation">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="string-name">
<xsl:element name="author">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="article-title | source
|year|volume|author|surname|given-names|etal">
<xsl:element name="{local-name()}">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

Any one suggest how will apply <fpage>752</fpage>&#x2013;<lpage>8</lpage>
to <page-range>752-8</page-range>.

Thanks
Byomokesh

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.