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

Tagging of text() with using apply templates

Subject: Tagging of text() with using apply templates
From: chirag matkar <chiragmatkarbioinfo@xxxxxxxxx>
Date: Mon, 25 Oct 2010 03:15:21 +0700
 Tagging of text() with using apply templates
Input is
         <ref id="B5">
        <label>5</label>
   <mixed-citation publication-type="journal">
            <name>
              <surname>Kaplan</surname>,
              <given-names>SH</given-names>
            </name>;
            <name>
              <surname>Greenfield</surname>,
              <given-names>S</given-names>
            </name>;
            <name>
              <surname>Ware</surname>,
              <given-names>JE</given-names>
            </name>.
          <article-title>Assessing the effects of physician-patient
interactions on the outcome of chronic disease</article-title>,
          <source>Med Care</source>,
          <year>1989</year>,
          <volume>27</volume>,
          <supplement>suppl 3</supplement>,
          <fpage>110</fpage>-
          <lpage>125</lpage>
        </mixed-citation>
      </ref>


Required output

<bibentry type="bib5" publication="jurnl">
        <num>5</num>
<authorgrp>
            <author>
              <surname>Kaplan</surname><x>,</x>
              <fname>SH</fname>
            </author><x>;</x>
          <author>
              <surname>Greenfield</surname><x>,</x>
              <fname>S</fname>
            </author><x>,</x>
            <author>
              <surname>Ware</surname><x>,</x>
              <fname>JE</fname>
            </author><x>.</x>
</authorgrp>
          <article type="title">Assessing the effects of
physician-patient interactions on the outcome of chronic
disease</article-title>,
          <article type="jurnl">Med Care</article><x>,</x>
         <date year="1989"> 1989</date><x>,</x>
          <volnum>27</volnum><x>,</x>
   <pagefield>
          <fpage>110</fpage>-
          <lpage>125</lpage>
</pagefield>
      </bibentry>


In output Mainly except - ,everthing else like . , ; should come under <x> tag
Also the input of , , ; can be random

I have use apply templates sequentially for authorgrp and others but
the random input of . , ; is not  tagged inside <x>


-- 
Regards,
Chirag Matkar

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.