xlst code to change the labels in an affiliation text string to superscript



ZXML:



<contrib-group>
<contrib/>
<contrib/>
<contrib/>

<aff id="AFF1"><label>1</label>InstitutionZ, Paris, France, <label>2</label>Departmenty, Wolfenbuettel, Germany, <label>3</label>Departmentx, Croissy-Sur-Seine, France</aff>


I want to transforms the to look like this,



<p><sup>1</sup>InstitutionZ, Paris, France,<sup>2</sup>Departmenty, Wolfenbuettel, Germany, <sup>3</sup>Departmentx, Croissy-Sur-Seine, France</p>


I have tried this,



<p><sup><xsl:value-of select="./label"></xsl:value-of></sup><xsl:value-of select="./text()"/></p>


But that only give me content between label 1 and label 2.


1InstitutionZ, Paris, France,


No comments:

Post a Comment