xsl-list
[Top] [All Lists]

Re: xsl templates match does not work

2005-04-06 09:22:36
I am calling it as follows.  The table heading show up
but the data from the xml sheet does not show up.  If
I hard code the path to the xml data it work though. 
Don't understand.

 <xsl:template match="/">
  <fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  
   <fo:layout-master-set>
     <fo:simple-page-master master-name="simple"
                   page-height="11in" 
                   page-width="8.5in"
                   margin-top=".5in" 
                   margin-bottom=".5in" 
                   margin-left=".5in" 
                   margin-right=".5in">
     <fo:region-body margin-top="1.18in"/>
       <fo:region-before extent="1.18in"/>
       <fo:region-after extent=".59in"/>
     </fo:simple-page-master>
   </fo:layout-master-set>
 
 
   <fo:page-sequence master-reference="simple">
        <fo:flow flow-name="xsl-region-body">
                
        <!--            <xsl:call-template name="mailingAddr"/>
                        <xsl:call-template name="summary"/>
                        <fo:block font-family="monospace"
                                          white-space-collapse="false" 
                                          linefeed-treatment="treat-as-space"  
                                          white-space-treatment="preserve">
                                <xsl:call-template name="detail"/>      
                        </fo:block>
                        <xsl:call-template name="returnAddress"/>
        -->
                        <fo:block>
                                <xsl:call-template name="summaryTable"/>
                        </fo:block>
        </fo:flow>
   </fo:page-sequence>
  </fo:root> 
 </xsl:template>



--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


You  have a template called summaryTable but you
don't show how (or if)
that template is executed.

that has

                                      <xsl:apply-templates 
select="total_due"/>

which will work if total_due selects a total_due
eleemnt which it will
if total_due is a child of the current node, ie the
current node is
a row node.

I would guess that is not the case in your styleseet
but that has to be
a guess since you don't show the relevant bits.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by
Star. The
service is powered by MessageLabs. For more
information on a proactive
anti-virus service working around the clock, around
the globe, visit:
http://www.star.net.uk

________________________________________________________________________


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




                
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>