XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 11th, 2003, 06:00 AM
D-flyer D-flyer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 261 D-flyer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 18 m
Reputation Power: 8
Simple XSL but it won't work??

Here's my starting .xsl (trying to get a grip on this subject)

PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
        <fo:simple-page-master master-name="content"
        page-height="21.0cm"
        page-width="29.7cm"
        margin-bottom="0.5cm"
        margin-left="1cm"
        margin-right="0.5cm"
        margin-top="0.5cm">
            <fo:region-before extent="1cm"/>
            <fo:region-after extent="1cm"/>
            <fo:region-body
            margin-top="1.1cm"
            margin-bottom="1.1cm" />
        </fo:simple-page-master>
            
            <fo:page-sequence-master  master-name="output">
                <fo:repeatable-page-master-reference master-name="content"/>
            </fo:page-sequence-master>
    
    </fo:layout-master-set>
    
    
<fo:page-sequence master-reference="output">
    <fo:static-content flow-name="xsl-region-before">
        <fo:block>
        <fo:external-graphic src="file:img1.jpg" width="144px" height="42px"/>
        </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
        <fo:block font-family="Helvetica" font-size="10pt" text-align="center"> Página <fo:page-number/>
    </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
        <fo:block>Let's test</fo:block>
    </fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>


When using FOP to get an .pdf output i get something like
Quote:
" No simple-page- master matching " in page-sequence-master 'output'


But i don't see why.

any tips,

Reply With Quote
  #2  
Old May 19th, 2004, 12:03 PM
tsr2 tsr2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 tsr2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I tripped over this just now. I fixed it by changing

Quote:
<fo:page-sequence master-reference="output">


so that the master reference referred to a repeatable-page-master-reference, not the page-master-sequence, so this line would become

Quote:
<fo:page-sequence master-reference="content">

Last edited by tsr2 : May 19th, 2004 at 12:05 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Simple XSL but it won't work??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT