On Wed, 11 Feb 2004 19:36:19 -0500, hilz <> wrote:
> "john farrow" <> wrote in message
> news:mryWb.23552$...
>> Set the initial-page-number attribute like this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>> <fo:layout-master-set>
>> <fo:simple-page-master master-name="page">
>> <fo:region-body margin='2.5cm' region-name="body"/>
>> </fo:simple-page-master>
>> </fo:layout-master-set>
>>
>> <fo
age-sequence master-reference="page" initial-page-number="19">
>> <fo:flow flow-name="body">
>> <fo:block >page number is <fo
age-number/></fo:block>
>> </fo:flow>
>> </fo
age-sequence>
>>
>> </fo:root>
>
> Thank you so much for the quick answer.
> I tired it and it worked great.
>
> Now when i try to substitute the number "19" with a variable
> "$initialPageNumber" that i pre-defined, it gives the error below:
John's example is straight XSL-FO. Presumably what you're not telling
us is that you are writing an XSLT transform in which you're using a
variable, and presumably you've written something like:
<fo

age-sequence master-reference="page"
initial-page-number="$initialPageNumber">
when what you meant was:
<fo

age-sequence master-reference="page"
initial-page-number="{$initialPageNumber}">
Of course, I'm just guessing because you didn't post any code.
--
Paul.
Logic Squad -- Technical Publishing with XML --
http://logicsquad.net/