[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Continued Table Headers [fo:marker and fo:retrieve-marker]


Subject: Re: [xsl] Continued Table Headers [fo:marker and fo:retrieve-marker]
From: Horace Burke <xmlmarkup@xxxxxxxxx>
Date: Wed, 16 May 2007 15:07:42 -0700 (PDT)

Ken,

Thanks for the info! I added a bigger chunk of XSL-FO and sample data. The
fo:marker (marker-class-name="continued") is in the "title" xsl:template
and fo:retrieve-marker is in "RegulatoryInfo" template. 

The problem that I am having is the "(Continued)" text is displaying on
the first and second occurrences of the table title.

Thanks in advance for your help for responding!


Regards,
Horace Burke



<xsl:key name="terms" match="term" use="@id"/>
	     
	 <xsl:template match="/">
		 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
		     <fo:layout-master-set>
     			  		 <!-- Define/Establish the Cover Page for Kit MSDS -->
                         <fo:simple-page-master page-height="11in"
page-width="8.5in" margin-top="5mm" margin-bottom="12mm"
                         margin-left="10mm" margin-right="10mm"
master-name="Cover-msds">
                             <!-- establish the output area(s) for this
page -->
          				     <fo:region-body region-name="Cvr-page-body"
margin-top="15mm" margin-bottom="15mm"/>
                             <fo:region-before extent="3mm"
region-name="cover-page-num"/>
           				     <fo:region-after extent="2em"
region-name="CpyRght-Footer"/>
                         </fo:simple-page-master>
                         
                            <!-- Define/Establish the MSDS Pages -->
                                 <fo:simple-page-master page-height="11in"
page-width="8.5in" margin-top="7mm" margin-bottom="12mm"
                                 margin-left="10mm" margin-right="10mm"
master-name="msds-page">
		                             <fo:region-body
region-name="Msds-page-body" margin-top="15mm" margin-bottom="15mm"
		                             background-image="watermark.eps"
background-repeat="no-repeat"/>
               				         <fo:region-before extent="13mm"
region-name="page-num"/>
     		                         <fo:region-after extent="10.25in"
region-name="CpyRght-Footer"/>
               			    	     <fo:region-start extent="1mm"
region-name="page-headings"/>
                                 </fo:simple-page-master>                 
    
             </fo:layout-master-set>
                 
                 <!--+===All MSDS pages ===+-->
                 <xsl:for-each select="Global.MSDS/msds">
                      <!--+Add data to MSDS pages+-->                
                     <fo:page-sequence master-reference="msds-page">
                         <!--+Page numbers top right MSDS pages+-->
                         <fo:static-content flow-name="page-num">
                             <fo:block line-height=".01pt">
                                 <!--<xsl:call-template name="Page"/>-->
                             </fo:block>
                         </fo:static-content>
                         
                         <!--+Add page headings to top of peages  and
"Continued" text to Section tables+-->
                         <fo:static-content flow-name="page-headings">
                             <!--Page Headings -->
                             <fo:retrieve-marker
retrieve-class-name="msds-page-headings"
retrieve-position="first-including-carryover" retrieve-boundary="page"/>
                                 <!--Section Table "Continued" text-->
                                 <fo:marker marker-class-name="cont-mkr">
                                     <fo:retrieve-marker
retrieve-class-name="continued"
retrieve-position="first-including-carryover" retrieve-boundary="page" />
                                 </fo:marker>
                         </fo:static-content>
                         
                         <fo:flow flow-name="Msds-page-body"
font-family="Arial Unicode MS">
                             <fo:block>
                                 <xsl:apply-templates select="OtherInfo"/>
                             </fo:block>  
                             <fo:block>
                                 <xsl:apply-templates
select="RegulatoryInfo"/>
                         </fo:block>
                     </fo:flow>
                 </fo:page-sequence>
             </xsl:for-each><!--msds-->
         </fo:root>
     </xsl:template><!--Global.MSDS-->   
     
     
     <!--+=== Section 15 Regulatory Information ===+-->
     <xsl:template match="RegulatoryInfo">
         <fo:table-and-caption space-before="1.5em">
			 <fo:table border-style="solid" border-width="1pt">
				 <fo:table-header>
				     <fo:table-row>
					     <fo:table-cell border-style="solid" border-width="1.5pt" 
border-bottom="1.5pt" border-left="1.5pt"  
					     border-right="1.5pt" padding-top="2.5mm" padding-bottom="2.5mm"
number-columns-spanned="7">
					         <fo:block text-align="center" font-weight="bolder">
					             <xsl:apply-templates select="title"
mode="TitleFontSize14"/>
					             <fo:retrieve-marker retrieve-class-name="continued"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence" />
					         </fo:block><!--Section 15 Title-->
					     </fo:table-cell>
				     </fo:table-row>
			     </fo:table-header>
			     <fo:table-footer>
                     <fo:table-row>
                         <fo:table-cell>
                             <fo:block></fo:block>
                         </fo:table-cell>
                     </fo:table-row>
                 </fo:table-footer>
				 <fo:table-body>
				    <xsl:for-each select="FedStateReg">
				         <fo:table-row>
						     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
			                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="7">
							     <fo:block start-indent=".3em" font-weight="bold">
							         <xsl:apply-templates select="title"/>
							     </fo:block><!--"US Federal and State Regulations" -->
						     </fo:table-cell>
					     </fo:table-row>
					     <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="SARA/title"/>
							 </fo:block><!--"SARA 313" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="SARA/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>
					 <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="CERCLA/title"/>
							 </fo:block><!--"CERCLA RG's, 40 CFR 302.4" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="CERCLA/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>
					 <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="CaProp/title"/>
							 </fo:block><!--"California Proposition 65" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="CaProp/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>
					 <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="MaMSL/title"/>
							 </fo:block><!--"Massachusetts MSL" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="MaMSL/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>
					 <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" 
			             number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="NJDeptHlth/title"/>
							 </fo:block><!--"New Jersey Dept. of Health RTK List" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="NJDeptHlth/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>
					 <fo:table-row>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
			             border-right="none" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="2">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="PaRTK/title"/>
							 </fo:block><!--"Pennsylvania RTK" -->
						 </fo:table-cell>
						 <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
						 border-right="1.5pt" padding-top="2mm" padding-bottom="2mm"
text-align="left" number-columns-spanned="5">
							 <fo:block start-indent="1.25em" end-indent="1em">
							     <xsl:apply-templates select="PaRTK/para"/>
							 </fo:block>
					     </fo:table-cell>
    				 </fo:table-row>					     
				 </xsl:for-each><!--FedStateReg-->
				 <xsl:for-each select="EULabClassif">
				     <fo:table-row>
					     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="none" border-left="1.5pt"
					     border-right="1.5pt" padding-top="1.5mm" padding-bottom="1.5mm"
text-align="left" 
			             number-columns-spanned="7">
						     <fo:block start-indent=".3em" font-weight="bold">
						         <xsl:apply-templates select="title"/>
							 </fo:block><!--"EU Labeling Classification" -->
    				     </fo:table-cell>
				     </fo:table-row>
				     <xsl:choose>
				         <xsl:when test="para">
				             <fo:table-row> 
					             <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="1pt" 
					             border-left="1.5pt" border-right="1.5pt"
padding-top="1.5mm" padding-bottom="1.5mm" text-align="left"
number-columns-spanned="7">
							         <fo:block start-indent=".3em">
						                 <xsl:apply-templates select="para"/>
							         </fo:block>
					             </fo:table-cell>
					         </fo:table-row>
					     </xsl:when>
    				     <xsl:otherwise>
					         <fo:table-row keep-with-previous="always">
						         <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
			                     border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="center" number-columns-spanned="2">
							         <fo:block start-indent=".1em" font-weight="bolder">
	                                     <xsl:apply-templates
select="Classif/title"/>
							         </fo:block><!--"Classification" -->
							         <fo:block space-before="5mm"><!-- 
							             <xsl:apply-templates
select="Classif/figureprint/graphic"/> -->
							         </fo:block>
						         </fo:table-cell>
						         <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
			                     border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="5">
							         <fo:block start-indent="1em" font-weight="bolder">
							             <xsl:apply-templates select="RiskSafPhrs/title"/>
							         </fo:block><!--"Risk Saftey Phrase" -->
							         <fo:block start-indent="1em" space-before="2mm">
							             <xsl:apply-templates select="RiskSafPhrs/para"/>
							         </fo:block><!--RiskSafPhrs-->
						         </fo:table-cell> 
					         </fo:table-row>
					     </xsl:otherwise>
				     </xsl:choose>
				 </xsl:for-each><!--EULabClassif-->		     
			     <xsl:for-each select="CanadReg">
				     <fo:table-row keep-with-previous="always">
					     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
		                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" 
		                 number-columns-spanned="7">
							 <fo:block start-indent=".3em" font-weight="bold">
							     <xsl:apply-templates select="title"/>
							 </fo:block><!--"Canada" -->
						 </fo:table-cell>
					 </fo:table-row>
					 <xsl:choose>
						 <xsl:when test="para">
							 <fo:table-row keep-with-previous="always">
						         <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
			                     border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="7">
							     <fo:block start-indent=".3em">
							         <xsl:apply-templates select="para"/>
							     </fo:block>
						     </fo:table-cell>
						     </fo:table-row>					 
						 </xsl:when>
						 <xsl:when test="WHMISClassif">
					     <fo:table-row keep-with-previous="always">
						     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
			                 border-right="none" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="2">
							     <fo:block start-indent=".3em" font-weight="bold">
							         <xsl:apply-templates select="WHMISClassif/title"/>
							     </fo:block><!--"WHMISClassif" -->
						     </fo:table-cell>
						     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="none" 
			                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="5">
								 <fo:block>
								     <xsl:apply-templates select="WHMISClassif/para"/>
								 </fo:block>
							 </fo:table-cell> 
					     </fo:table-row>						 
					 </xsl:when>
				 </xsl:choose>			     
				 <fo:table-row>
				     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="none" border-left="1.5pt" 
			         border-right="none" padding-top="1.5mm" padding-bottom="1.5mm"
 text-align="left" number-columns-spanned="2">
					     <fo:block start-indent=".3em" font-weight="bold">
					         <xsl:apply-templates select="PIN/subtitle"/>
					     </fo:block><!--"PIN" -->
     			     </fo:table-cell>
				     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="none" border-left="none" 
	                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="5">
					     <fo:block>
     				         <xsl:apply-templates select="PIN/para"/>
					     </fo:block>
				     </fo:table-cell>
				     </fo:table-row>
				     <fo:table-row>
					     <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="1.5pt" 
	                     border-right="none" padding-top="1.5mm"
padding-bottom="1.5mm"  text-align="left" number-columns-spanned="2">
							     <fo:block start-indent=".3em" font-weight="bold">
							         <xsl:apply-templates select="IngredDisclLst/title"/>
							     </fo:block><!--"Ingredients on Ingredient Disclosure List" -->
						     </fo:table-cell>
						     <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="none" border-left="none" 
			                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="5">
							     <fo:block>
							         <xsl:apply-templates select="IngredDisclLst/para"/>
							     </fo:block>
						     </fo:table-cell> 
					     </fo:table-row>
					     <fo:table-row>
						     <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="1pt" border-left="1.5pt" 
			                 border-right="none" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="2">
							     <fo:block start-indent=".3em" font-weight="bold">
							         <xsl:apply-templates select="IngredToxProp/title"/> 
							     </fo:block><!--" Ingredients with unknown Toxicological
properites" -->
						     </fo:table-cell>
						     <fo:table-cell border-style="solid" border-width="1pt"
border-top="none" border-bottom="1pt" border-left="none" 
			                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" 
			                 number-columns-spanned="5">
							     <fo:block>
							         <xsl:apply-templates select="IngredToxProp/para"/>
							     </fo:block>
						     </fo:table-cell> 
					     </fo:table-row> 
					</xsl:for-each> <!--CanadReg-->
				     <fo:table-row>
					     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1.5pt" 
		                 border-right="1.5pt" padding-top="1.5mm"
padding-bottom="1.5mm" text-align="left" number-columns-spanned="7">
							 <fo:block start-indent=".3em">
							     <xsl:apply-templates select="para"/>
							 </fo:block>
						 </fo:table-cell>
					 </fo:table-row>					   
				 </fo:table-body>
			 </fo:table>	 
		 </fo:table-and-caption>		 
     </xsl:template>
     
     <!--+=== Section 16 Other Information ===+--> 
     <xsl:template match="OtherInfo">
         <fo:table-and-caption space-before="1.3em">
			 <fo:table border-style="solid" border-width="1pt">
				 <fo:table-header>
				     <fo:table-row>
					     <fo:table-cell border-style="solid" border-width="1.5pt" 
border-bottom="1.5pt" border-left="1.5pt"  
					     border-right="1.5pt" padding-top="2.5mm" padding-bottom="2.5mm"
number-columns-spanned="8">
					         <fo:block text-align="center" font-weight="bolder">
					             <xsl:apply-templates select="title"
mode="TitleFontSize14"/>
					         </fo:block><!--Section 16 Title-->
					     </fo:table-cell>
				     </fo:table-row>
			     </fo:table-header>
			     <fo:table-footer>
                     <fo:table-row>
                         <fo:table-cell>
                             <fo:block></fo:block>
                         </fo:table-cell>
                     </fo:table-row>
                 </fo:table-footer>
				 <fo:table-body>
				     <!--<xsl:for-each select="BCSafRating">-->
	                     <fo:table-row>
						     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
      						 padding-top="2mm" padding-bottom="2mm"
number-columns-spanned="2">
							     <fo:block start-indent="0.3em" end-indent="0.3em"
font-weight="bolder">
							         <xsl:apply-templates select="title"/> 
    							 </fo:block><!--"Safety Rating" -->
	    					 </fo:table-cell>
		    				 <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="none"
			       			 padding-top="2mm" padding-bottom="2mm"
number-columns-spanned="3">
    							 <fo:block start-indent="1.5em" font-weight="bolder">
        							 <xsl:apply-templates select="FlamSec/subtitle"/>
		    					 </fo:block><!--"Flammability Section V" -->
			    				 <fo:block start-indent="1.5em">
			    				     <xsl:apply-templates select="HealthSec/subtitle"/>
				    			 </fo:block><!--"Flammability Section V" -->
					     		 <fo:block start-indent="1.5em">
						    	     <xsl:apply-templates select="ReactWtrSec/subtitle"/>
							     </fo:block><!--"Reactivity with Water Section X" -->
    							 <fo:block start-indent="1.5em">
	    						     <xsl:apply-templates select="ContactSec/subtitle"/>
		       					 </fo:block><!--"Contact Section VIII" -->
				    		 </fo:table-cell>
					    	 <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="none" border-right="1pt"
      						 padding-top="2mm" padding-bottom="2mm" text-align="left">
    							 <fo:block>
	    						     <xsl:value-of select="FlamSec/para"/>
     							 </fo:block>
	     						 <fo:block>
		     					     <xsl:value-of select="HealthSec/para"/>
    							 </fo:block>
	    						 <fo:block>
		    					     <xsl:value-of select="ReactWtrSec/para"/>
         						 </fo:block>
	    						 <fo:block>
		    					     <xsl:value-of select="ContactSec/para"/>
        						 </fo:block>												 												 
                             </fo:table-cell>								 
		    			     <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
			    		     padding-top="2mm" padding-bottom="2mm" text-align="left"
number-columns-spanned="2">
            					 <fo:block start-indent="1.5em">
	    	    				     <xsl:apply-templates select="Code/subtitle"/>
		    					 </fo:block><!--"Code" -->
			    			     <fo:block start-indent="1.5em">
     			    				 <xsl:apply-templates select="Code/para"/>
					    	     </fo:block>
						     </fo:table-cell>
    					 </fo:table-row>
			             <fo:table-row>
				             <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
				             padding-top="1.5mm" padding-bottom="1.5mm"
text-align="left" number-columns-spanned="2">
         				         <fo:block start-indent="0.3em" end-indent="0.3em"
font-weight="bolder">
	    				             <xsl:apply-templates select="title"/><!--"Revision
Changes"-->
	        			         </fo:block>
			    	         </fo:table-cell>
				             <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
				             padding-top="1.5mm" padding-bottom="1.5mm"
text-align="left" number-columns-spanned="6">
    					         <fo:block start-indent="1em" space-before="2mm">
        			                 <xsl:apply-templates select="para"/>
		     			         </fo:block>
    		    	         </fo:table-cell> 
			             </fo:table-row>
			             <fo:table-row>
				             <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
     				         padding-top="1.5mm" padding-bottom="1.5mm"
text-align="left" number-columns-spanned="2">
    					         <fo:block start-indent="0.25em" end-indent="0.15em"
font-weight="bolder">
	    				             <xsl:apply-templates select="title"/><!--"Risk
Phrases from Section 3"-->
		    			         </fo:block>
			    	         </fo:table-cell>
				             <fo:table-cell border-style="solid" border-width="1pt" 
border-bottom="1pt" border-left="1pt" border-right="1pt"
				             padding-top="1.5mm" padding-bottom="1.5mm"
text-align="left" number-columns-spanned="6">
     					         <fo:block start-indent="1em" space-before="2mm">
        			                 <xsl:apply-templates select="para"/>
		     					 </fo:block>
     		    	         </fo:table-cell> 
			             </fo:table-row>					 
		    			 <fo:table-row>
			     		     <fo:table-cell border-style="solid" border-width="1pt"
border-bottom="1pt" border-left="1.5pt" border-right="1.5pt"
				    	     padding-top="1.5mm" padding-bottom="1.5mm" text-align="left"
number-columns-spanned="8">
    							 <fo:block start-indent=".5em">								 
	 						         <xsl:apply-templates/>
	     						 </fo:block>
		    				 </fo:table-cell>
			     		 </fo:table-row>
				 </fo:table-body>
			 </fo:table>	 
		 </fo:table-and-caption>
		 <!--ID for page number-->
		 <xsl:if test="not(following::OtherInfo)">
		     <fo:block id="LastPage"/>
		 </xsl:if>
     </xsl:template>    
	 
     <!--+Set font size to 14 points and center aligned Section titles+-->
     <xsl:template match="title" mode="TitleFontSize14" priority="1">
		 <!--Add "Continued" text for Section titles-->
		 <fo:marker marker-class-name="continued">
			 <xsl:apply-templates select="title" mode="TitleFontSize14"/>
			 <fo:inline font-weight="bolder">
				 <!--<xsl:for-each select="key('terms','cont')">
                     <xsl:text>&#160;(</xsl:text>
                     <xsl:value-of select="@text"/>
                     <xsl:text>)</xsl:text>
                 </xsl:for-each>-->(Continued)
             </fo:inline>
         </fo:marker>
         <xsl:choose>
		     <xsl:when test="parent::RegulatoryInfo | parent::OtherInfo">
		         <fo:inline font-weight="bolder" font-size="14pt"
text-align="center">
		             <xsl:choose>
						 <xsl:when  test="@noTrans='yes'">
						     <fo:inline color="#0000FF">
						         <xsl:apply-templates/>
						     </fo:inline>						     
						 </xsl:when>
						 <xsl:when test="@change='yes'">
						     <fo:inline color="#FF0000">
						         <xsl:apply-templates/>
						     </fo:inline>						     
						 </xsl:when>
						 <xsl:otherwise>
						     <xsl:apply-templates/>
						 </xsl:otherwise>						 
					 </xsl:choose>
		         </fo:inline>
		     </xsl:when>
		 </xsl:choose>
     </xsl:template>
     
     <!--+Paragraphs Template+-->   
     <xsl:template match="para">
	 	         <xsl:choose>
				     <!--Add the color blue to paras with attribute "noTrans"and
valule "yes"-->
				     <xsl:when test="@noTrans='yes'">
			             <fo:inline color="#0000FF">
			                 <xsl:apply-templates/>
     			         </fo:inline>
	     		     </xsl:when>
	     		      <!--Add the color red to paras with attribute "change"and
valule "yes"-->
		    	     <xsl:when test="@change='yes'">
			     		 <fo:inline color="#FF0000">
			                 <xsl:apply-templates/>
			             </fo:inline>
     		         </xsl:when>
			         <xsl:otherwise>
			             <xsl:apply-templates/>
			         </xsl:otherwise>
			     </xsl:choose>    
	 </xsl:template>
	 
	 
	 
======XML SNIPPET======

<Global.MSDS>
<msds>
<!--==Section == 15-->
<RegulatoryInfo>
<title>Section 15 Regulatory Information</title>
<FedStateReg>
<title>US Federal and State Regulations</title>
<SARA>
<title>SARA 313</title>
<para>No ingredients listed</para>
</SARA>
<CERCLA>
<title>CERCLA RG's, 40 CFR 302.4</title>
<para>No ingredients listed</para>
</CERCLA>
<CaProp>
<title>California Proposition 65</title>
<para>No ingredients listed</para>
</CaProp>
<MaMSL>
<title>Massachusetts MSL</title>
<para>No ingredients listed</para>
</MaMSL>
<NJDeptHlth>
<title>New Jersey Dept. of Health RTK List</title>
<para>No ingredients listed</para>
</NJDeptHlth>
<PaRTK>
<title>Pennsylvania RTK</title>
<para>Propylene Gylcol is listed</para>
</PaRTK>
</FedStateReg>
<EULabClassif>
<title>EU Labeling Classification</title>
<Classif>
<title>Classification</title>
<figureprint>
<graphic fileref="img/harmful_sym.png" meaning="Harmful"/>
</figureprint>
</Classif>
<RiskSafPhrs>
<title>Risk and Safety Phrases</title>
<para>R37/38 Irritating to respiratory system and skin.</para>
<para>R41 Risk of serious damage to eyes.</para>
<para>R42 May cause sensitization by inhalation.</para>
<para>S26 In case of contact with eyes, rinse immediately with plenty of
water
and seek medical advaice.</para>
<para>S39 Wear eye/face protection.</para>
</RiskSafPhrs>
</EULabClassif>
<CanadReg>
<title>Canada</title>
<WHMISClassif>
<title>WHMIS Classification</title>
<para>D2B&#x2014;Poisonous and Infectious Material: Division
2&#x2014;Other
Toxic Effects: Toxic (Chronic Toxic Effects) 			         </para>
<para>D2B&#x2014;Poisonous and Infectious Material: Division
2&#x2014;Other
Toxic Effects: Toxic (Eye Irritation)</para>
<para>D2B&#x2014;Poisonous and Infectious Material: Division
2&#x2014;Other
Toxic Effects: Toxic (Skin Irritation)</para>
</WHMISClassif>
<PIN>
<subtitle>PIN</subtitle>
<para>Not applicable</para>
</PIN>
<IngredDisclLst>
<title>Ingredients on Ingredient Disclosure List</title>
<para>Propylene Glycol</para>
</IngredDisclLst>
<IngredToxProp>
<title>Ingredients with unknown Toxicological properties</title>
<para>Product is exempt</para>
</IngredToxProp>
</CanadReg>
<para change="yes">Hazardous Ingredients found in Section 15 are below
OSHAs
and WHMIS'  1.0% w/w (0.1% for carcinogens) or EU's ingredient           
   specific concentrations required for reporting in Section 3</para>
</RegulatoryInfo>
<!--==Section 16==-->
<OtherInfo>
<title>Section 16 Other Information</title>
<BCSafRating>
<title>Safety Ratings</title>
<FlamSec>
<subtitle>Flammability (Section V)</subtitle>
<para>0</para>
</FlamSec>
<HealthSec>
<subtitle>Health (Section XI)</subtitle>
<para>2</para>
</HealthSec>
<ReactWtrSec>
<subtitle>Reactivity with Water (Section X)</subtitle>
<para>0</para>
</ReactWtrSec>
<ContactSec>
<subtitle>Contact (Section VIII)</subtitle>
<para>2</para>
</ContactSec>
<Code>
<subtitle>Code</subtitle>
<para>0=none</para>
<para>1=slight</para>
<para>2=caution</para>
<para>3=severe</para>
</Code>
</BCSafRating>
<RevChange>
<title change="yes">Revision Changes</title>
<para change="yes">This is new.</para>
<para noTrans="yes">More</para>
<para>Some more</para>
</RevChange>
<RiskSafHaz>
<title change="yes">Risk Phrases from Section 3</title>
<para change="yes">New addition</para>
<para>More</para>
<para noTrans="yes">Some more</para>
</RiskSafHaz>
<para>* ProClin is a trademark of the Rohm and Haas Company.</para>
<para>For further information, please contact your local
...representative.</para>
</OtherInfo>
</msds>
</Global.MSDS>




--- "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:

> At 2007-05-15 16:36 -0700, Horace Burke wrote:
> >I am not sure of the reason why no one responded to my post. May be I
> am
> >writing something that tell you experts to stay away.
> 
> I know the reason I didn't respond was that the example given was not 
> an example I could work with and test:  you fragmented a stylesheet 
> rather than giving an instance of XSL-FO that illustrated the 
> problem.  A stylesheet fragment isn't very useful since you don't 
> give any test data and a volunteer would have to write all of the 
> framework around your fragment.
> 
> Personally, I resolve XSL-FO problems by authoring the FO needed to 
> trigger the issue that I am having, and then analyzing the 
> specification to see what is right and wrong with the XSL-FO that I 
> think I need.
> 
> If you can write the FO you need and the FO works, then that 
> indicates your problem is with your XSLT and not with your FO.  You 
> haven't equipped anyone to work with your XSLT, and even doing so 
> adds work to the volunteer.
> 
> I know some of my FO students were unaware coming to class that there 
> are zero dependencies by XSL-FO on XSLT and that one can write and 
> debug a standalone XSL-FO instance in order to comprehend and 
> exercise FO constructs long before having to write a stylesheet that 
> creates similar constructs.
> 
> >Is there any solution or work around in XSL-FO 1.0 for this? XSL-FO 1.1
> >has "Table Markers" in section 6.13.1.1.2, but I am using Arbortext E3
> and
> >Epic Editor 5.1 (uses Saxon 6.5.2) and it does have any implementation
> for
> >XSL-FO 1.1. Hence, the reason for error messages and processing stops.
> 
> It is good that you are now indicating the software you are running 
> ... if you had an XSL-FO instance (not a stylesheet) that triggers 
> the problem in the ATI tools then volunteers on this list would have 
> the opportunity to run your code in other engines and relate their 
> experiences:  perhaps the problem is in the software and not in your 
> choice of XSL-FO constructs.
> 
> >Please, please let me know if there is any hope here.
> 
> I cannot take the time to decipher your stylesheet ... if you post a 
> working standalone XSL-FO instance illustrating your issue then it 
> will be a lot easier for volunteers to help you with your problem.
> 
> I hope you find this feedback helpful.
> 
> . . . . . . . . . . . . . . Ken
> 
> 
> --
> Upcoming hands-on training(Europe 2007): XSL-FO Jun 11; UBL Oct 01
> World-wide corporate, govt. & user group XML, XSL and UBL training
> RSS feeds:     publicly-available developer resources and training
> G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
> Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
> Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
> 
> 



       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  


Current Thread
Keywords