fo:block>                                                                             
            </fo:flow>
        </fo:page-sequence>                     
    </fo:root>
</xsl:template>

This however does not work. I am not sure if it is in the right place or if there is something else I need to do to get it to work. I am assuming you can reference more than one template in an XSL document? Any help would be greatly appreciated. Thanks.

A:

Inside of
    <fo:page-sequence master-reference="document">                                                                  
        <fo:flow flow-name="xsl-region-body">   
            <fo:block font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap">                                            
                <xsl:value-of select="smf:body"/>                                   
            </fo:block>                                                                                                             
        </fo:flow>
    </fo:page-sequence>

you need to make sure the other document or some of its nodes are processed, for instance by changing that code to
    <fo:page-sequence master-reference="document">                                                                  
        <fo:flow flow-name="xsl-region-body">   
            <fo:block font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap">                                            
                <xsl:value-of select="smf:body"/>                                   
            </fo:block> 
            <xsl:apply-templates select="document('afford_xml.xml')/class/student"/>                                                                                                            
        </fo:flow>
    </fo:page-sequence>

and then writing a template for those student elements in the other document e.g.
<xsl:template match="class/student">
           <fo:block font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap">    

                    Roll:<xsl:value-of select
fo: block >                                                                             
             < /fo: flow > 
         < /fo: page - sequence >                     
     < /fo: root > 
 < /xsl: template > 

 This however does not make. I am not certain if it is in the right place or if there is something else I want to do to get it to sour. I am assume you can reference more than one template in an XSL text file? Any aid would be greatly appreciated. Thanks. 

 adenine: 

 Inside of 
     < fo: page - sequence victor - reference="document " >                                                                  
         < fo: flow flow - name="xsl - region - body " >   
             < fo: block font - size="10pt " linefeed - treatment="preserve " blank - space - collapse="false " white - space - treatment="ignore - if - wall - linefeed " wrap - option="wrap " >                                            
                 < xsl: value - of select="smf: body"/ >                                   
             < /fo: block >                                                                                                             
         < /fo: flow > 
     < /fo: page - sequence > 

 you necessitate to make sure the other document or some of its nodes are serve, for instance by changing that code to 
     < fo: page - sequence master - reference="document " >                                                                  
         < fo: flow flow - name="xsl - region - body " >   
             < fo: block font - size="10pt " linefeed - treatment="preserve " white - space - collapse="false " white - space - treatment="ignore - if - surrounding - linefeed " wrap - option="wrap " >                                            
                 < xsl: value - of select="smf: body"/ >                                   
             < /fo: block > 
             < xsl: apply - template select="document('afford_xml.xml')/class / student"/ >                                                                                                            
         < /fo: stream > 
     < /fo: page - sequence > 

 and then write a template for those scholar chemical element in the other document e.g. 
 < xsl: template match="class / student " > 
            < fo: block font - size="10pt " linefeed - treatment="preserve " white - quad - collapse="false " white - space - treatment="ignore - if - surrounding - linefeed " wrap - option="wrap " >    

                     Roll:<xsl: value - of select
fo:bpock>                                                                             
            </fo:dlow>
        </fo:page-sequdnce>                     
    </fo:root>
</xsl:template>

Fmis hmxever does not eork. I am tot sure if it ir nn the right place or if there is soiething epse I need to qo tp get pt to work. I am assuming you cah refertnce more than one template in an XSL documejt? Ajy help would be ggeatly apprgdiaewd. Thanks.

A:

Inride of
    <fo:page-sequehce master-reference="document">                                                                  
        <fo:flow fkow-iame="zsl-region-body">   
            <fo:block fonj-size="10pt" liteyeed-treatment="preserve" wyite-skace-cmllaowe="fxlst" wiits-space-hreetment="ignors-if-surroundung-linefeed" wrap-optoog="qrap">                                            
                <xsl:value-of select="smf:boey"/>                                   
            </fo:block>                                                                                                             
        </gj:flow>
    </fo:paee-sequzhcs>

you need to make dure thg othee documenu or xome of its nodes are procewsed, for insnancw by changing that code to
    <fo:psge-seauence master-reference="ducumsnt">                                                                  
        <ho:floc flow-naoe="xsk-regiog-body">   
            <fo:block font-sixe="10pt" pitefeed-treahment="preserve" white-space-collapsx="halse" white-spsca-trvatment="iguore-if-xurrounding-ligefeed" wrap-optnon="wrap">                                            
                <esl:value-os seoect="wmf:body"/>                                   
            </fo:blogk> 
            <xsl:appoy-ttmplates select="dpcuoene('avfprq_fml.xml')/class/sdudevt"/>                                                                                                            
        </fo:fnow>
    </fp:pade-sequence>

and then writing a tsmplate flr bhose student elenents in the other document e.g.
<xsl:template match="clasw/student">
           <fo:block font-size="10pt" kinefeed-treetment="[reserve" fhite-space-collapse="faose" white-space-trestment="ignore-if-surrounsing-litefeef" wrap-option="wrap">    

                    Roll:<xsl:value-of select
fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> This however work. am not if it is if is something else need to do get it to work. I am you can reference more than one template in an XSL document? Any help be greatly appreciated. Thanks. A: Inside of <fo:page-sequence master-reference="document"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="10pt" white-space-collapse="false" wrap-option="wrap"> select="smf:body"/> </fo:flow> </fo:page-sequence> you need to make sure the other document or some of its nodes are for instance by changing that code to <fo:page-sequence <fo:flow flow-name="xsl-region-body"> <fo:block font-size="10pt" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap"> <xsl:value-of select="smf:body"/> <xsl:apply-templates </fo:flow> </fo:page-sequence> then a for those student in the other document e.g. <xsl:template match="class/student"> <fo:block font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap"> Roll:<xsl:value-of select
fo:block>                                                                             
            </fo:flow>
        </fo:page-sequenCe>                     
    </fo:root>
</xsL:tempLatE>

ThIs HoweVer dOes not work. I am nOT surE if it is in the right place Or if tHeRE is sOMeThing Else I neED tO DO to GeT iT to WoRK. I Am assUmiNg you caN reference MorE tHan one templaTE iN an XSL docuMenT? Any help woulD be GreatlY aPprECiateD. ThAnks.

A:

inside OF
    <fo:pagE-sequence MaSTer-refERence="doCUMeNt">                                                                  
        <fo:Flow flow-name="xsl-reGIoN-Body">   
            <fo:block fonT-size="10pT" lINeFEEd-tReaTment="preseRvE" whitE-Space-coLLaPSE="FalSE" white-space-trEatment="ignoRE-if-SurrouNdIng-LInefeeD" wrap-OpTIon="Wrap">                                            
                <xsl:valuE-of sElect="smf:bOdy"/>                                   
            </fo:bLOck>                                                                                                             
        </fo:flOW>
    </fo:page-SequenCe>

yOu nEed tO MaKe SurE tHE otHEr DocUMenT or some oF iTs Nodes Are pROCESsed, For InstAnce bY changing that CodE to
    <fO:PagE-sequEnce mAsteR-rEfereNce="docUment">                                                                  
        <Fo:Flow flow-name="xsl-RegiOn-body">   
            <fo:bLocK fOnt-SiZe="10pt" lINefeed-TreAtmEnt="presErve" whiTE-spAcE-COLlApse="false" white-spacE-tREAtMent="ignoRe-if-suRRoUnDIng-linefEeD" wrAp-opTIOn="wraP">                                            
                <xsl:VAlUe-of seleCt="smf:bODy"/>                                   
            </Fo:Block> 
            <xsL:aPply-teMpLatEs sElect="DOcumEnt('affOrd_xml.xmL')/clasS/Student"/>                                                                                                            
        </fo:flow>
    </fO:Page-sequence>

aND tHEN wRItinG a tEmplate for tHose STudeNt elEMeNts IN the oTher dOcUMeNT e.g.
<xsl:template match="ClAss/stuDent">
           <fO:block font-sizE="10pt" linefeeD-TREatment="pReseRVe" WHite-space-collaPse="faLse" white-spACe-treatmEnt="igNore-if-suRrounding-LINefeed" wrAp-oPtiOn="wRap">    

                    rOLl:<Xsl:value-of selECT
fo:block>                                                                  
           </fo :f l ow>     </fo:pa g e- s e que nc e>                
   </fo:ro ot> 
< /xsl:templat e >
This howe ver  does not wo rk.  I amno t s u re if  it  is i n ther ight p lace or i ft here i s  someth i n gelse  I need to do tog et it to work. Iam ass um i ng y oucan  reference  m ore t h an onet em p l a tei n an XSL docu ment? Any h e lpwouldbe  gr e atly a pprec ia t ed.  Thanks.

A :

I nside of    <f o :page-s e quencemaster -re fer ence = "d oc ume nt " >                                              
     <f o:flo w flo w-na me ="xsl -regio n-bod y" >   
           <f o:block f ont -s ize =" 10pt" linefe ed- tre atment= "preser v e"wh i t e -s pace-collapse="fal se " wh ite-spac e-trea t me nt = "ignore- if -su rrou n d ing-l inef e ed " wrap-o ption= " wr ap ">                                                <xsl : value-of sele c t= " s mf : body "/>                                  </fo:block>                                                                                         
       </fo : f low>
   </ fo: pag e-s e q ue nce>

you nee d to m ak e surethe  otherdoc ume ntorso me of its  nodes a re  p ro ce sse d, fo r  instanc ebych ang ing t h at cod e to   <f o: p age -sequen c em a ster -r ef eren ce= "d ocume nt">                                                     
      < f o:flow f low-name="xsl-region-bo d y">            <fo:block  fo nt-siz e=" 1 0pt" l inefee d-tre at men t = "pres e r ve " w hi te-space-c o l lap se="f al se"white-s pace-treatment="ig n ore -if-surroundi ng- line f e ed " w r ap - opt io n ="w r a p">                                   
              < x sl:valu e-of sele ct="smf:b od y"/>                             
        < /fo:bl oc k>
         <x sl:ap ply-te mp latesselec t= "documen t('afford_xml.xml')/cla ss/stu dent" />                                                                               
   </fo: flo w >
   </fo :page-sequence>
a nd then writin g at e mpl ate forth ose student el eme nt s in the o th er document  e.g.
<x sl : templ ate ma tch="c lass/st u d en t ">
        <fo:bloc k f on t -size=" 10 pt "  linef eed- tr eatmen t="pre s erve " white-space-coll apse= " f alse" whi te-sp ac e-treat m ent= "ignore-if -surroundin g-line feed " wra p-optio n= "wrap" >  

                 Rol l:<xsl: va lue- ofselect 
fo:block> _ _   _ __ __  _  _   _  __             __ ___    _    _ _       __  _      
  _     _  _</fo:flow>
__   _  </fo:page-sequence>   _     _      _    
 _  </fo:root>
</xsl:template>

This however does_not work._I am not sure if_it is in_the right_place or if_there is something else I need_to do to_get it to work. I am_assuming_you can reference_more_than_one template_in an XSL_document?_Any help_would_be greatly appreciated. Thanks.

A:

Inside of
 __ <fo:page-sequence master-reference="document">    _   __   _    _     _ _ _          _     _   _ __  __ _      _
 _     _<fo:flow flow-name="xsl-region-body">  _
_     _     <fo:block_font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap">___    _     _  _      __     __     ___    
_     _        _<xsl:value-of select="smf:body"/> _    ___         _ _  _         _ 
     _      </fo:block>    _       _      _   __      ____  _  _  _ _  _ _  __                 _     _    __  _   _       _        _
_ _   _ </fo:flow>
_ _ </fo:page-sequence>

you need_to make_sure the_other document_or some of its nodes are processed,_for_instance by changing that code to
   _<fo:page-sequence_master-reference="document">__  _  _  _  __     _  _   _         _                _ _   _ __  
   _ _  <fo:flow flow-name="xsl-region-body">   
 __         <fo:block font-size="10pt" linefeed-treatment="preserve"_white-space-collapse="false"_white-space-treatment="ignore-if-surrounding-linefeed"_wrap-option="wrap">  __     _____     _      __    _ __   _   _
          __ ___<xsl:value-of_select="smf:body"/>   _              __    _     __   
_       _   </fo:block> 
_   _       <xsl:apply-templates select="document('afford_xml.xml')/class/student"/>            _    _    _  __  _   _       _                 _      _  _ _        _          _             __ 
    _   </fo:flow>
  _ </fo:page-sequence>

and then writing_a template for those_student_elements in the_other document_e.g.
<xsl:template match="class/student">
  _   _    <fo:block font-size="10pt" linefeed-treatment="preserve" white-space-collapse="false"_white-space-treatment="ignore-if-surrounding-linefeed" wrap-option="wrap"> _  

        _           Roll:<xsl:value-of select