Author Topic: automatically generate multiple pages.  (Read 1087 times)

joart

  • Newbie
  • *
  • Posts: 2
automatically generate multiple pages.
« on: July 08, 2009, 02:02:59 pm »
I have try to create automatically generate multiple pages but is not working and i dont no why
The cover and back working... and i think the problem commes from the colored part of code

HELP ME PLEASE

the code is below :

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book SYSTEM "http://megazine.mightypirates.de/megazine.dtd">
<book bgcolor="0x000000" pageheight="432" pagewidth="340" lang="en" barpos="20" reflection="true" bggradient="false">
   <chapter>
      <page stiff="true">
         <img src="../imgs/normal/cover.jpg" hires="../imgs/hires/cover.jpg" />
      </page>
      <page>
         <img src="../imgs/normal/page[2-162].jpg" hires="../imgs/hires/page[2-162].jpg"
         gallery="Automatically generated Value"/>
      </page>

      <page stiff="true">
         <img src="../imgs/normal/back.jpg" hires="../imgs/hires/back.jpg"  />
      </page>
   </chapter>
</book>

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: automatically generate multiple pages.
« Reply #1 on: July 08, 2009, 02:43:30 pm »
Hiya,

the img element doesn't support that syntax. Use the chapter@pages attribute instead, e.g. something like this:

Code: (xml)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE book SYSTEM "http://megazine.mightypirates.de/megazine.dtd">
  3. <book bgcolor="0x000000" pageheight="432" pagewidth="340" lang="en" barpos="20" reflection="true" bggradient="false">
  4.   <chapter>
  5.      <page stiff="true">
  6.         <img src="../imgs/normal/cover.jpg" hires="../imgs/hires/cover.jpg" />
  7.      </page>
  8.   </chapter>
  9.   <chapter pages="../imgs/normal/page[2-162].jpg|_hires">
  10.   </chapter>
  11.   <chapter>
  12.      <page stiff="true">
  13.         <img src="../imgs/normal/back.jpg" hires="../imgs/hires/back.jpg"  />
  14.      </page>
  15.   </chapter>
  16. </book>

The hires images will have to be in the same folder as the normal ones, though, and have the suffix _hires (in the above example).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

joart

  • Newbie
  • *
  • Posts: 2
Re: automatically generate multiple pages.
« Reply #2 on: July 08, 2009, 03:11:30 pm »
Thanks a lot !!!  ;D