The XSL List does not accept attachments (something I like personally).

You'll need to communicate with Andreas off the list to be able to send 
files.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies).




David Kim <[EMAIL PROTECTED]> 
06/14/2005 02:01 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
RE: Overlapping Data?






Hi Andreas,

I hope it is not a problem. Here are my files.

1. My xsl file (full)
2. My data xml file (full)

I wrote comments that I want in those files.

Thanks a lot.

David.

====================================================
> > -- My problem --
> > In my case, if xml data tags are overlapped each
> other
> > in xsl(i.e GUI), I want to display
> itself(overlapped
> > data) in pdf.
> > In order to do that, I think it should be able to
> be
> > used wherever data are displayed. Is there any
> other
> > way?.
> > (For example, template --> template -->template ..
> > overlapped data..)
> 
> I think your problem shouldn't be a problem at all
> --in theory, but I don't
> know *exactly* what your FO code looks like...
> 
===================================================

1. My xsl file (full)
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
                                 xmlns:fo="
http://www.w3.org/1999/XSL/Format"; 
                                 exclude-result-prefixes="fo" 
version="1.1">
 

  <xsl:template match="data">
    <xsl:value-of select="language" />
 
    <fo:root>
 

      <fo:layout-master-set>
        <fo:simple-page-master           master-name="contents"
margin-top="1cm" 
 margin-bottom="1.0581001cm"
margin-left="1cm" 
 margin-right="1.0581001cm">
          <fo:region-before
region-name="xsl-region-before" extent="1.7cm" />
          <fo:region-after
region-name="xsl-region-after" extent="1.7cm" />
          <fo:region-start
region-name="xsl-region-start" extent="1.7cm" />
          <fo:region-end region-name="xsl-region-end"
extent="1.7cm" />
          <fo:region-body
region-name="xsl-region-body" margin-top="1cm" 
 margin-bottom="1.7cm" margin-left="1.7cm"

 margin-right="1.7cm" />
        </fo:simple-page-master>
      </fo:layout-master-set>
 
      <!--..********************************.......-->
      <!--..****** page-sequence      ******.......-->
      <!--..********************************.......-->
      <fo:page-sequence master-reference="contents">
 
 
 
<!--...********************************.......-->
       <!--...****** static-content 
******.......-->
 
<!--...********************************.......-->
       <fo:static-content
flow-name="xsl-region-before">
<!--.....................................******define
Title in region-before
*****.................................-->
                   <fo:block>
                                 <fo:retrieve-marker
retrieve-class-name="data-title"
                         retrieve-boundary="page-sequence"
 
retrieve-position="first-starting-within-page" />
                   </fo:block>
<!--.....................................******define
Title in region-before
*****end..............................-->
        </fo:static-content>
 
 
        <fo:static-content
flow-name="xsl-region-after">
          <fo:block font-family="Times"
font-size="20pt" font-weight="bold"
font-style="italic" text-align="right">
          <fo:page-number />     / 
<fo:page-number-citation ref-id="16491778" /> 
          </fo:block>
        </fo:static-content >
 
        <fo:static-content
flow-name="xsl-region-start" />
        <fo:static-content flow-name="xsl-region-end"
/>
 
        <fo:flow flow-name="xsl-region-body">
          <fo:block />
          <fo:block start-indent="3cm"
space-before="2.4cm" font-family="Times"
font-size="37pt" font-weight="bold">
            TITLE
          </fo:block>

 
<!--.....................................******
overlap test
*****.................................................-->
                   <!--  CASE 1 : OK
          <fo:block-container position="absolute" top="2.4cm"
left="4.5cm" height="1cm" width="5cm">
                <fo:block>
                TITLE2
                </fo:block>
          </fo:block-container>
          -->
                   <!--  CASE 2 : OK -->
                   <xsl:call-template name="overlap"/> 
                   <!--  -->
<!--.....................................******
overlap test *****
end.............................................-->


          <fo:block>
<!--........................................*****start
TITLE in region-before
*****..............................-->
              <fo:marker
marker-class-name="data-title">

                    <fo:block font-weight="bold"
font-style="" font-family="Times" font-size="13pt">
                                       NAME-title, 
                      REGION-title, 
                      SALARY-title, 
                      BONUS-title, 
                    </fo:block>
<!-- 
.......................................................................................................
  --> 
                                     <xsl:call-template name="dotline" 
/><!--
decorate -->
 
                                 </fo:marker >
                         <fo:block>
                <xsl:apply-templates select="//result"
/> 
                </fo:block>
<!--........................................*****start
TITLE in region-before
*****end...........................-->
          </fo:block>
          <fo:block id="16491778" />
                   <!--  CASE 3 : OK -->
                   <xsl:call-template name="overlap"/> 
                   <!--  -->
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
  </xsl:template> <!--* data *-->
 
 
  <!-- ***************************** -->
  <!--        template mathch        -->
  <!-- ***************************** -->
  <!-- ............................. -->
  <!--        'result'               -->
  <!-- ............................. -->
 
  <xsl:template
match="result"><!--match=data/body/resultset/result-->
 
 
        <fo:block font-weight="bold"
font-family="Times" font-size="13pt">
          <xsl:value-of select="NAME" /> 
        </fo:block>

        <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
          <xsl:value-of select="REGION" />
        </fo:block>

        <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
          <xsl:value-of select="SALARY" />
        </fo:block>

        <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
          <xsl:value-of select="BONUS" /> 
 
        </fo:block>
 
           <xsl:apply-templates select="SUB/REPEAT"/> 
 
  </xsl:template> 
 
 
   <!-- ............................. -->
   <!--        'REPEAT'               -->
   <!-- ............................. -->
   <xsl:template match="SUB/REPEAT" >

                 <fo:block>


                                 <xsl:if 
test='not(preceding-sibling::REPEAT[1])'>
                                                         <fo:block 
font-weight="bold" font-style=""
font-family="Times" font-size="10pt">
                                                           SUB1-title, 
                                                         </fo:block>

                                                         <fo:block 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           SUB2-title, 
                                                         </fo:block>

                                                         <fo:block 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           SUB3-title, 
                                                         </fo:block>

                                 </xsl:if>
 

                          <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB1" />
                          </fo:block>

                          <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB2" />
                          </fo:block>
 
                          <fo:block font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB3" /> 
                          </fo:block>
 
                                                 <xsl:apply-templates
select="REPEATSUB/REPEAT"/> 

                 </fo:block>
 
   </xsl:template>

   <!-- ............................. -->
   <!--        'REPEATSUB             -->
   <!-- ............................. -->
   <xsl:template match="REPEATSUB/REPEAT" >

                 <fo:block>

                                 <xsl:if 
test='not(preceding-sibling::REPEAT[1])'>
                                                         <fo:inline 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           sub-SUB1-title, 

                                                         </fo:inline>
 <xsl:call-template name="space-1"/>
                                                         <fo:inline 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           sub-SUB2-title, 

                                                         </fo:inline>
 <xsl:call-template name="space-1"/>
                                                         <fo:inline 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           sub-SUB3-title, 

                                                         </fo:inline>
 <xsl:call-template name="space-1"/>
                                                         <fo:inline 
font-weight="bold"
font-style="italic" font-family="Times"
font-size="10pt">
                                                           sub-SUB4-title, 

                                                         </fo:inline>
                                                         <fo:block/>
                                 </xsl:if>
 
 
 
                          <fo:inline font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB1" />
                          </fo:inline>
                                  <xsl:call-template name="space-1"/>
 
                          <fo:inline font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB2" />
                          </fo:inline>
                                  <xsl:call-template name="space-1"/>

                          <fo:inline font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">
                            <xsl:value-of select="SUB3" /> 
                          </fo:inline>
                                  <xsl:call-template name="space-1"/>

                          <!--
*********************************************************************************
-->
                          <!-- * Here, I want to overlap data with
each other (for example, sub3, sub4)        * -->
                          <!--
*********************************************************************************
-->
                          <!-- * Data(i.e (..SUB3, SUB4): (..33,44),
(..33A,44A),(..33B,44B)...ref:data xml.   * -->
                          <!--
*********************************************************************************
-->
                          <fo:inline font-weight="bold"
font-style="italic" font-family="Times"
font-size="13pt">

                            <!-- **
                   <fo:block-container position='absolute'
top='16cm' left='2cm' height='3in' width='2in'
border='3px solid yellow'>
                   <fo:block>
                   ** -->
                            <xsl:value-of select="SUB4" /> 
                            <!-- block>
                   </fo:block-container >-->

                          </fo:inline>

 
                 </fo:block>
 
   </xsl:template>

<!--
..................................................................call-template
dotline....-->
   <xsl:template name="dotline">
                 <fo:block text-align="left"><!-- decorate -->
                                 <fo:leader color="blue" 
leader-pattern="dots"
leader-length="550pt" /> 
                 </fo:block>
   </xsl:template>
<!--
..................................................................call-template
space1.....-->
   <xsl:template name="space-1">
                 <fo:leader leader-pattern="space"/>
                 <!--<fo:inline
white-space-collapse="false"><fo:character character='
'/></fo:inline>-->
   </xsl:template>
 
<!--
..................................................................call-template
overlap.....-->
   <xsl:template name="overlap">
                 <fo:block-container position="absolute" top="2.4cm"
left="4.5cm" height="1cm" width="5cm">
                                 <fo:block>
                                 TITLE2
                                 </fo:block>
                 </fo:block-container>
  </xsl:template>
 
 
 
 
</xsl:stylesheet>



2. My data xml file (full)
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<data>
  <body>
    <resultset>
      <result>
        <NAME>PAUL3</NAME>
        <REGION>NS</REGION>
        <SALARY>9878787</SALARY>
        <BONUS>1111</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>1111</SUB1>
                                         <SUB2>2222</SUB2>
                                         <SUB3>3333</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>1111A</SUB1>
                                         <SUB2>2222A</SUB2>
                                         <SUB3>3333A</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>1111B</SUB1>
                                         <SUB2>2222B</SUB2>
                                         <SUB3>3333B</SUB3>
                                         <REPEATSUB>
 
                                         <!-- 
********************************** -->
                                         <!-- I want to overlap data 1 and 
data2 -->
                                         <!-- 
********************************** -->
                                                         <REPEAT>
 <SUB1>11</SUB1>
 <SUB2>22</SUB2>
 <SUB3>33</SUB3><!-- data 1-->
 <SUB4>44</SUB4><!-- data 2-->
                                                         </REPEAT>
                                                         <REPEAT>
 <SUB1>11A</SUB1>
 <SUB2>22A</SUB2>
 <SUB3>33A</SUB3><!-- data 1-->
 <SUB4>44A</SUB4><!-- data 2-->
                                                         </REPEAT>
                                                         <REPEAT>
 <SUB1>11B</SUB1>
 <SUB2>22B</SUB2>
 <SUB3>33B</SUB3><!-- data 1-->
 <SUB4>44B</SUB4><!-- data 2-->
                                                         </REPEAT>
                                                 </REPEATSUB>

                         </REPEAT>
        </SUB>
      </result>
 
      <result>
        <NAME>SubTotal</NAME>
        <REGION />
        <SALARY />
        <BONUS>2222</BONUS>
      </result>
      <result>
        <NAME>PAUL4</NAME>
        <REGION>PEI</REGION>
        <SALARY>98732187</SALARY>
        <BONUS>3333</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>1111C</SUB1>
                                         <SUB2>2222C</SUB2>
                                         <SUB3>3333C</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>1111D</SUB1>
                                         <SUB2>2222D</SUB2>
                                         <SUB3>3333D</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>1111E</SUB1>
                                         <SUB2>2222E</SUB2>
                                         <SUB3>3333E</SUB3>
                         </REPEAT>
                 </SUB>

      </result>
      <result>
        <NAME>SubTotal</NAME>
        <REGION />
        <SALARY />
        <BONUS>4444</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>w111</SUB1>
                                         <SUB2>w222</SUB2>
                                         <SUB3>w333</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>w111A</SUB1>
                                         <SUB2>w222A</SUB2>
                                         <SUB3>w333A</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>w111B</SUB1>
                                         <SUB2>w222B</SUB2>
                                         <SUB3>w333B</SUB3>
                         </REPEAT>
        </SUB>
      </result>
      <result>
        <NAME>PAUL5 PAUL5 PAUL5 PAUL5 PAUL5 </NAME>
        <REGION>QUEBEC QUEBEC QUEBEC QUEBEC
QUEBEC</REGION>
        <SALARY>5768787</SALARY>
        <BONUS>5555</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>x111</SUB1>
                                         <SUB2>x222</SUB2>
                                         <SUB3>x333</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>x111A</SUB1>
                                         <SUB2>x222A</SUB2>
                                         <SUB3>x333A</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>x111B</SUB1>
                                         <SUB2>x222B</SUB2>
                                         <SUB3>x333B</SUB3>
                         </REPEAT>
        </SUB>
      </result>
      <result>
        <NAME>SubTotal</NAME>
        <REGION />
        <SALARY />
        <BONUS>6666</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>y111</SUB1>
                                         <SUB2>y222</SUB2>
                                         <SUB3>y333</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>y111A</SUB1>
                                         <SUB2>y222A</SUB2>
                                         <SUB3>y333A</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>y111B</SUB1>
                                         <SUB2>y222B</SUB2>
                                         <SUB3>y333B</SUB3>
                         </REPEAT>
        </SUB>
      </result>
      <result>
        <NAME>SubTotal</NAME>
        <REGION/>
        <SALARY />
        <BONUS>7777</BONUS>
        <SUB>
                         <REPEAT>
                                         <SUB1>z111</SUB1>
                                         <SUB2>z222</SUB2>
                                         <SUB3>z333</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>z111A</SUB1>
                                         <SUB2>z222A</SUB2>
                                         <SUB3>z333A</SUB3>
                         </REPEAT>
                         <REPEAT>
                                         <SUB1>z111B</SUB1>
                                         <SUB2>z222B</SUB2>
                                         <SUB3>z333B</SUB3>
                         </REPEAT>
        </SUB>
      </result>
      <total>
        <BONUS>6578752</BONUS>
      </total>
    </resultset>
  </body>
</data>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to