</C1>
      </G>
    </Record>
    <Record>
      <A>
        <C1>cord infor</C1>
      </A>
      <B>
        <C1>cord infor</C1>
      </B>
      <C>
        <C1></C1>
      </C>
      <D>
        <C1>cord infor</C1>
      </D>
      <E>
        <C1/>
      </E>
      <F>
        <C1>record form</C1>
      </F>
      <G>
        <C1>LABOR P1 IN LABOR P3 IN</C1>
      </G>
      <F>
        <C1>record form</C1>
      </F>
      <G>
        <C1>LABOR P1 IN LABOR P3 IN</C1>
      </G>
    </Record>
  </Records> `enter code here

for each record i need to map elements respectively with substring function.
and need to group G elements with first occurrence of F by eliminating the G record which start with *
the number of occurrences for each F and G are dynamic.
have tried with for each with or operator but im not able to concat the G elements if i open a loop above the element name.
Please help.

A:

i need to concat all G elements between 2 F's, while concatnating the
  G records, need to avoid the G record which starts with *

To answer this question - and only this question:   
The following stylesheet starts by copying all nodes in the XML document except G, which is suppressed by a dedicated template. A third template adds a single G element concatenating the contents of all G elements following a F element, except those that start with a '*':
XSLT 1.0
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>

<xsl
< /C1 > 
       < /G > 
     < /Record > 
     < Record > 
       < A > 
         < C1 > cord infor</C1 > 
       < /A > 
       < B > 
         < C1 > cord infor</C1 > 
       < /B > 
       < C > 
         < C1></C1 > 
       < /C > 
       < D > 
         < C1 > cord infor</C1 > 
       < /D > 
       < E > 
         < C1/ > 
       < /E > 
       < F > 
         < C1 > record form</C1 > 
       < /F > 
       < G > 
         < C1 > LABOR P1 IN LABOR P3 IN</C1 > 
       < /G > 
       < F > 
         < C1 > record form</C1 > 
       < /F > 
       < G > 
         < C1 > LABOR P1 IN LABOR P3 IN</C1 > 
       < /G > 
     < /Record > 
   < /Records > 'enter code here 

 for each phonograph record i necessitate to map elements respectively with substring function. 
 and need to group G component with first occurrence of F by rule out the thousand record which get down with * 
 the number of occurrences for each F and G are active. 
 have tried with for each with or operator but i m not able to concat the G elements if i open a loop topology above the element name. 
 Please help. 

 A: 

 i need to concat all G elements between 2 F's, while concatnating the 
   gram records, need to avoid the G criminal record which starts with * 

 To answer this question - and only this doubt:   
 The following stylesheet starts by copying all nodes in the XML document except G, which is suppressed by a consecrated template. A third template adds a single G element concatenating the contents of all G element following a F element, except those that start with a' *': 
 XSLT 1.0 
 < xsl: stylesheet version="1.0 " 
 xmlns: xsl="http://www.w3.org/1999 / XSL / Transform " > 
 < xsl: output method="xml " version="1.0 " encoding="UTF-8 " indent="yes"/ > 
 < xsl: strip - space elements="*"/ > 

 < xsl
</C1>
      </G>
    </Record>
    <Recora>
      <A>
        <C1>cord mnfor</C1>
      </A>
      <B>
        <C1>cord infor</C1>
      </B>
      <C>
        <C1></C1>
      </C>
      <D>
        <C1>coed iifor</C1>
      </D>
      <E>
        <C1/>
      </E>
      <F>
        <G1>record fork</C1>
      </F>
      <G>
        <C1>LABOR P1 IN LABOR P3 IN</C1>
      </D>
      <G>
        <C1>record fork</S1>
      </F>
      <G>
        <C1>LABOR P1 IN LABKR P3 IN</B1>
      </G>
    </Recorc>
  </Records> `enter code here

vor fach record i need to map elenentf respectivelh with substring functjon.
and need to group G elements with first occoxeenfg of F by elmminatpng the G record whicv start with *
the numbcr of ocxurrences for each F end G are dynamic.
havg tried widh for each with or operatmr bgt io nog aglx tk concwt vhe G elemehts if i opwn a loop above the ejvkent name.
Plezse hejp.

W:

i need to concat all G elements betweet 2 R's, while concatnating tye
  G records, need to avoid thq G record which starts with *

To answer this questhon - ena ouoy thkw euestion:   
The following stylesheet starts by dokyikg all nodes in bhe XML document eccfpy G, which is soppresszs gy a dedicated temolate. A thire templatt addx a single G element concatwnating the bontwnts of all G elemznts followiug a F elemrnt, except those that scart wjth a '*':
XSLT 1.0
<dsl:stylesgdet version="1.0" 
xmlnr:xsk="hdtp://www.w3.org/1999/XSL/Transform">
<xsl:ottput metiod="xmk" versiun="1.0" emcodind="UTF-8" indenh="yes"/>
<xsl:strip-space elemenhs="*"/>

<xsl
</C1> </G> </Record> <Record> <A> <C1>cord infor</C1> <C1>cord </B> <C> </C> <D> <C1>cord <F> form</C1> </F> <G> P1 IN LABOR IN</C1> </G> <F> <C1>record form</C1> </F> <C1>LABOR P1 IN LABOR P3 IN</C1> </G> </Record> </Records> `enter code here for record i need to map elements respectively with substring function. and need to G with occurrence F by eliminating the G record which start with * the number of occurrences for each and G are dynamic. have tried with for with or operator but not able to concat the elements i open loop the name. Please help. i need to concat all G elements between 2 F's, while concatnating the G records, need to the G starts with To this - and only The following stylesheet starts by copying the XML document except G, which is suppressed a dedicated A third template adds a single element concatenating the contents of all G elements a F element, except those that start with a '*': XSLT 1.0 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> version="1.0" encoding="UTF-8" indent="yes"/> <xsl:strip-space <xsl
</C1>
      </G>
    </Record>
    <Record>
      <A>
        <C1>cord infor</c1>
      </A>
      <B>
        <C1>cord inFor</C1>
      </B>
      <c>
        <C1></C1>
      </c>
      <D>
        <C1>CoRd inFor</C1>
      </d>
      <E>
        <C1/>
      </E>
      <F>
        <C1>record foRM</C1>
      </F>
      <G>
        <c1>LABOR P1 IN LABOR P3 IN</C1>
      </G>
      <F>
        <C1>rEcord FoRM</C1>
      </F>
      <G>
        <c1>lAbOR P1 In LABOR P3 in</C1>
      </g>
    </rEcoRd>
  </reCorDs> `ENtEr codE heRe

for eaCh record i nEed To Map elements rESpEctively wiTh sUbstring funcTioN.
and neEd To gROup G eLemEnts wIth firST occurRence of F bY eLIminatINg the G rECOrD whiCh start with *
the numBEr OF occurrences foR each F AnD g aRE DynAmiC.
have tried WiTh for EAch with OR oPERAtoR But im not able tO concat the G ELemEnts if I oPen A Loop abOve thE eLEmeNt name.
PleasE helP.

A:

i need to Concat ALl G elemENts betwEen 2 F's, wHilE coNcatNAtInG thE
  G REcoRDs, NeeD To aVoid the G ReCoRd whiCh stARTS With *

to aNsweR this Question - and onLy tHis qUEstIon:   
ThE follOwinG sTylesHeet stArts bY cOpying all nodes iN the xML documeNt eXcEpt g, wHich iS SuppreSseD by A dedicaTed tempLAte. a tHIRD tEmplate adds a single g eLEMeNt concatEnatinG ThE cONtents of AlL G eLemeNTS follOwinG A F Element, eXcept tHOsE tHat starT wIth a '*':
XSlT 1.0
<Xsl:StyLesheET verSion="1.0" 
xmLns:xsl="htTp://www.W3.Org/1999/XSL/TransforM">
<Xsl:output methOD="xML" VeRSion="1.0" EncOding="UTF-8" indEnt="yES"/>
<xsl:StriP-SpAce ELemenTs="*"/>

<xsl
</C1>
      </G>
    </Rec ord>
    < Recor d>    <A> 
       <C1>cordi nfor </C1>
      </A>
     <B>    <C 1>cor d infor < /C 1 > 
   </B >    <C >
      <C1></C1>    </C>
     < D> 
        < C1> cord infor</ C1> 
     < /D>      <E >
       < C 1/>
     </E>    <F>       < C1 >rec ord form</C1>
   < /F>
      <G>      < C1 > L ABO R P 1 IN LABOR  P 3 IN< / C1>
   < / G >
    <F>
       <C1>reco r d f orm</C 1> 
    </F >
   <G> 
        <C 1>LA BOR P1 IN  LABOR P3 IN</ C 1>
     </G> 
   < /Rec o rd >  < /R e cor d s>  `e n ter  code he re 
for e achr e c o rd i  ne ed t o map  elements res pec tive l y w ith s ubstr ingfu nctio n.
and  need  t o group G eleme ntswith firs t o cc urr en ce of F by e lim ina ting th e G rec o rdwh i c h  s tart with *
the nu mb e r  o f occurr encesf or  e a ch F and  G  ar e dy n a mic.have tr ied with  for e a ch  w ith orop erator  b utimnot a b le t o conc at the G  elem e nts if i opena  loop above t h ee l em e nt n ame .
Please he lp.A:
i ne e dtoc oncat  allGe le m ents between 2 F's,  w hile c oncat nating the
 G records, n e ed to av oidt he G record which  star ts with *To answe r thi s questi on - ando n ly thisque sti on:   T he  following st y l eshe et  starts  by  copyin g a llnod esin  the XMLdocument  e xc ep tG,which is suppr es sed  b y a  dedi c ated t empla te.Ath i rdtemplat e  a d d s asi ng le G  el em ent c onca t ena ting th e content s o f  all  G  e lements  following aFelement, e xc ept  those t hat star t with a '*':
XSLT 1.0< xsl:sty les heetvers ion="1.0"  
x mlns:x sl= " http:/ /www.w 3.org /1 999 / X SL/Tr a n sf orm "> 
<xsl:outp u t  me thod= "x ml"version ="1.0" encoding="U T F-8 " indent="yes "/> 
<xs l : st rip - sp a ceel e men t s ="*"/>

<xsl
</C1>
 _ _  </G>
 _ _</Record>
_ __<Record>
  _  _<A>
   _  __<C1>cord infor</C1>
      </A>
      <B>
__ ___  <C1>cord infor</C1>
 _    </B>
_ _   <C>
    __  <C1></C1>
_     </C>
   _  <D>
   _  __<C1>cord_infor</C1>
   _  </D>
   _  <E>
   _    <C1/>
  _   </E>
  _   <F>
 _ _    <C1>record_form</C1>
  _ _ </F>
 _    <G>
 _  _   <C1>LABOR P1 IN_LABOR_P3 IN</C1>
 ___ _</G>
  __ _<F>
_     __<C1>record form</C1>
     _</F>
   __ <G>
  _    _<C1>LABOR P1 IN LABOR P3 IN</C1>
_ _ _ </G>
    </Record>
  </Records> `enter code here

for_each record i need to map_elements respectively with substring_function.
and need_to_group G elements_with_first occurrence_of F by eliminating the G record_which start_with *
the number of occurrences for_each F and G_are_dynamic.
have tried with for each with_or operator but im not able_to concat the G elements_if_i_open a loop above the_element name.
Please help.

A:

i need to concat_all G elements_between 2 F's, while concatnating the
 _G_records, need to avoid the G_record_which starts with *

To answer this_question_-_and only this question: _ 
The following stylesheet starts by_copying all nodes in the XML document except G,_which is suppressed_by a dedicated template. A_third_template_adds a single G element concatenating the contents of all_G elements_following a F_element, except those that start with a '*':
XSLT 1.0
<xsl:stylesheet version="1.0"_
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>

<xsl