Listing 1

<?xml version="1.0" encoding=”UTF-16”?>
<!DOCTYPE GBSet PUBLIC "-//NCBI//NCBI GBSeq/EN"
"http://www.ncbi.nlm.nih.gov/dtd/NCBI_GBSeq.dtd">
<GBSet>
  <GBSeq>
     <GBSeq_locus>RICSSS</GBSeq_locus>
     <GBSeq_length>2533</GBSeq_length>
     <GBSeq_moltype value="mrna">5</GBSeq_moltype>
     <GBSeq_topology value="linear">1</GBSeq_topology>
     <GBSeq_division>PLN</GBSeq_division>
     <GBSeq_update-date>11-JAN-2003</GBSeq_update-date>
     <GBSeq_create-date>26-JAN-1994</GBSeq_create-date>
     <GBSeq_definition>Oryza sativa mRNA for soluble starch synthase, complete
	 cds
	</GBSeq_definition>
     <GBSeq_primary-accession>D16202</GBSeq_primary-accession>
     <GBSeq_accession-version>D16202.1</GBSeq_accession-version>
     <GBSeq_other-seqids>
          <GBSeqid>dbj|D16202.1|RICSSS</GBSeqid>
          <GBSeqid>gi|450484</GBSeqid>
      </GBSeq_other-seqids>
      <GBSeq_source>Oryza sativa</GBSeq_source>
       <GBSeq_references>
           <GBReference>
              <GBReference_reference>1 (bases 1 to
			  2533)</GBReference_reference>
              <GBReference_authors>
                 <GBAuthor>Baba,T.</GBAuthor>…(truncated GBReference authors)
				 </GBAuthor>
              </GBReference_authors>
              <GBReference_title>Identification, cDNA cloning, and gene
			  expression
			  of soluble 
                starch synthase in rice (Oryza sativa L.) immature
				seeds</GBReference_title>
              <GBReference_journal>Plant Physiol. 103 (2), 565-573
			  1993)</GBReference_journal>
              <GBReference_medline>94302151</GBReference_medline>
              <GBReference_pubmed>7518089</GBReference_pubmed>
            </GBReference>
       ……………….(file truncated due to reasons of space)……………….
     <GBQualifier>
       <GBQualifier_name>translation</GBQualifier_name>
       <GBQualifier_value>MATAAGMGIGAACLVAPQVRPGRRLRLQRVRRRCVAELSRD
        ………..…..…(truncated amino acid sequence)…………………….
        QGTGWAFSPLTIEKNAVGIADGNFDIQGTQVLLGGSNEARHVKRLYMGPCRLTV
            </GBQualifier_value>
      </GBQualifier>
        ……………….(file truncated due to reasons of space)……………….
        <GBSeq_sequence>CGCGACTCAGCCCACTCCTCTCTCTCCACCACCACCACCACC
         ………………(truncated nucleotide sequence)………………………
         GTGAAGACTAAATAGTGTTTGGAAGCTGTAGCTACTGCGATGTCAAGTGTCAA
        </GBSeq_sequence>
    </GBSeq>
  </GBSet>

Listing 2

 <?xml version="1.0" encoding="UTF-16" ?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:include href="text.justify.xslt" /> 
 <xsl:output method="text" encoding="UTF-16" /> 
 <xsl:strip-space elements="*" />

  <xsl:template match="/">
 Rice Soluble Starch Synthase 
  Prim_acc Mol_type Clone_size Protein_# Protein_name Amino_Acid Mol_Wt
  |---------|------------|------------|------------|--------------|-----------------
----|----------|

  <xsl:call-template name="table-entries">
 <xsl:with-param name="file" select="'file1.xml'" /> 
  <xsl:with-param name="n" select="1" /> 
  </xsl:call-template>
  </xsl:template>
   <xsl:template name="table-entries">
  <xsl:param name="file" /> 
  <xsl:param name="n" /> 
  <xsl:param name="amino_acid"
  select="document($file)//GBQualifier_value[preceding-sibling::GBQualifier_name/text()='translation']" />
 
  <xsl:call-template name="text-justify">
  <xsl:with-param name="value" select="document($file)//GBSeq_primary-accession" /> 
  <xsl:with-param name="width" select="11" /> 
  <xsl:with-param name="align" select="'center'" /> 
  </xsl:call-template>
  <xsl:text>|</xsl:text>
 
  <xsl:call-template name="text-justify">
  <xsl:with-param name="value"
   select="document($file)//GBQualifier_value[preceding-sibling::GBQualifier_name/text()='mol_type']" /> 
  <xsl:with-param name="width" select="11" /> 
  <xsl:with-param name="align" select="'center'" /> 
  </xsl:call-template>
  <xsl:text>|</xsl:text>
 
  <xsl:call-template name="text-justify">
  <xsl:with-param name="value"
   select="string-length(document($file)//GBQualifier_value[preceding-sibling:
   :GBQualifier_name/text()='translation'])"/> 
  <xsl:with-param name="width" select="10" /> 
  <xsl:with-param name="align" select="'center'" /> 
  </xsl:call-template>
  <xsl:text>|</xsl:text>
…………..(truncated to save space)…………….
   <xsl:call-template name="text-justify">
  <xsl:with-param name="value"
  select="89*string-length(translate($amino_acid,translate($amino_acid,'A',''),''))+
174*string-
 …………(truncated to save space)……………..
length(translate($amino_acid,translate($amino_acid,'V',''),''))" /> 
  <xsl:with-param name="width" select="10" /> 
  <xsl:with-param name="align" select="'center'" /> 
  </xsl:call-template>
  <xsl:text>|</xsl:text> 
  <xsl:text />
 
   <xsl:if test="$n<25">
   <xsl:call-template name="table-entries">
  <xsl:with-param name="file" select="concat('file', $n + 1 , '.xml')" /> 
  <xsl:with-param name="n" select="$n+1" /> 
  </xsl:call-template>
  </xsl:if>
  </xsl:template>
  </xsl:stylesheet>