Re: [xep-support] need information

From: G. Ken Holman (gkholman@CraneSoftwrights.com)
Date: Thu Nov 28 2002 - 06:16:15 PST


At 2002-11-28 11:20 +0100, Ernst, Alexander wrote:
>I got instructions to test XEP for my company in order to buy a server
>license if XEP is suitable to us and works fine. I am trying a simple
>example with the following lines first.
>
>
>1 <fo:root xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>xmlns:cscr="urn:my-scripts" xmlns:fo="http://www.w3.org/1999/XSL/Format">
>2 <fo:layout-master-set>
>3 <fo:simple-page-master master-name="first" page-width="21cm"
>page-height="29.7cm">
>4 <fo:region-before region-name="MedaPDF-region-before" extent="0.2cm"
>display-align="before" />
>5 <fo:region-after region-name="MedaPDF-region-after" extent="0.2cm"
>display-align="after" />
>6 <fo:region-body region-name="MedaPDF-region-body" border="medium
>ridge silver" margin-top="2cm" margin-bottom="2cm" margin-left="1.5cm"
>margin-7 right="1.5cm" />
>7 </fo:simple-page-master>
> ...
>
>and got the following error...
>
>{!line 7, column 29: The content of element type "fo:simple-page-master"
>must ma
>tch
>"(fo:region-body,fo:region-before?,fo:region-after?,fo:region-start?,fo:regi
>on-end?)".}
>Interrupted due to errors.)
>----
>done
>
>
>is there really somthing wrong?

Yes ... the DTD-syntax content model says body first and perimeter regions
follow. Your instance has the body definition last. How was the error
message ambiguous to you so that perhaps the reporting could be improved?

I hope this helps.

................... Ken

--
Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
-                             North America:  Feb 3 - Feb 7,2003
G. Ken Holman               mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.        http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next conference training:                    2002-12-08,03-03,06
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:29 PST