Help-Site Computer Manuals
  Algorithms & Data Structures   Programming Languages   Revision Control
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac




A proofsheet is generated by AxKit::App::Gallery whenever the user requests a directory listing of a ::Gallery managed directory. The proofsheet is an XML document, and the last stylesheet in the proofsheet processing chain should style this to HTML (or your final delivery format).

If you have enabled ?style=xml processing in your Apache configuration file you can always get the internally generated XML for a proofsheet by appending ?style=xml to a proofsheet URL.


This is an annotated proofsheet. I should really create this as a DTD.

  <?xml version="1.0"?>

  <proofsheet>                  <!-- Root proofsheet element -->

    <!-- These elements contain information about the gallery's

         configuration, as specified in the Apache config file -->


      <!-- <perl-vars> contains values that are set using the PerlSetVar

           command that relate to the gallery config.  A simple

               <var name="foo">value</var>

           syntax is used (mostly). -->


        <var name="ProofsheetColumns">4</var>

        <var name="ImagesPerProofsheet">16</var>

        <var name="GalleryCache">/var/tmp/gallery</var>

        <var name="GalleryThumbQuality">preview</var>

        <!-- GallerySizes is different.  It's a space separated string

             in the config file.  XSLT would much prefer this to be  

             broken out in to tree of nodes, so that's what we do.  

             Note the 'type="thumb"' attribute, which indicates which

             of the sizes is going to be used for thumbnails -->


          <size type="thumb">133</size>







      <!-- <server> contains information about the web server 

           configuration -->








    <!-- Each directory to be listed is represented as an <album>

         element, with a top-level <albums> wrapper -->



        <!-- The current directory is always included.  This is so that

             the breadcrumb trail navigation can be constructed. -->


        <!-- The URI for this directory is included, for the breadcrumb

             trail, and so that links to it can easily be generated.

             For ease of parsing in XSLT, the URI is split in to tokens,

             delimited by the '/' in the URI (which is not included).

             Each token becomes a <component>, which then contains an

             <e>scaped and an <u>nescaped version of the URI.  The

             escaped version is for use in href attributes, the

             unescaped version is for use when displaying the directory

             name to the end user in a web page.

             So this URI might end up as:

             <a href="/pics/2002%2005%20(May)%20Singapore/">/pics/2002

             05 (May) Singapore</a>









            <u>2002 05 (May) Singapore</u>



        <!-- The local path to the directory and the content-type are

             also included -->

        <dirpath>/local/2/pub/Pictures/2002 05 (May) Singapore</dirpath>



      <!-- Repeat <album> elements as necessary -->


    <!-- Each image is wrapped in an <image> element with various child

         elements.  All the images are wrapped in an <images> element.  -->



        <filename>P0001065.JPG</filename>       <!-- Filename -->

        <filesize>359856</filesize>             <!-- Size in bytes -->

        <!-- The modification time is 'seconds-since-the-epoch', which

             may not be terribly useful in XSLT.  I'm not too worried

             about this at the moment, since (I think) it's more likely

             that the EXIF info about when the image was taken or 

             modified (see <imageinfo> later) is going to be more useful



        <!-- The URI for this image.  Actually, it's the URI for the 

             directory that the image is in.  This follows the same 

             format as the <uri> element in the <album> element -->








            <u>2002 05 (May) Singapore</u>



        <!-- Full path to the image on the local file system -->

        <dirpath>/local/2/pub/Pictures/2002 05 (May) Singapore</dirpath>

        <!-- Content type, as determined by Apache -->


        <!-- There now follows information gleaned from the image using

             the Image::Info module.

             The information is structured as RDF, with elements from a

             number of different XML namespaces used.  Details about the

             namespaces can be found in AxKit::App::Gallery::namespaces.

             Elements in this example have been grouped according to 

             namespace prefix, and sorted according to element name for

             ease of reading.  The actual output from the stylesheets is

             not sorted this way. -->









            rdf:about="/pics/2003 10 25 Eighty Days Photoshoot/PICT3257.JPG">

            <!-- EXIF, from Image::Info -->







            <b:CustomRendered>Custom process</b:CustomRendered>

            <b:DateTime>2003:10:25 18:09:00</b:DateTime>

            <b:DateTimeDigitized>2003:10:25 13:23:24</b:DateTimeDigitized>

            <b:DateTimeOriginal>2003:10:25 13:23:24</b:DateTimeOriginal>






            <b:ExposureMode>Auto exposure</b:ExposureMode>



            <b:Flash>Flash did not fire, compulsory flash mode</b:Flash>





            <b:ImageDescription>DCF 1.0</b:ImageDescription>




            <b:Make>Minolta Co., Ltd.</b:Make>


            <b:Model>DiMAGE 7i</b:Model>




            <b:Software>QuickTime 6.4</b:Software>

            <b:SubjectDistanceRange>Close view</b:SubjectDistanceRange>

            <b:Tag-0x013c>Mac OS X 10.2.8</b:Tag-0x013c>

            <b:WhiteBalance>Auto white balance</b:WhiteBalance>






            <!-- Non-EXIF, from Image::Info -->






            <!-- Each potential version of the image is also representated.

                 The 'e:thumbnail/rdf:Description/rdf/@about' element is the

                 URI that will generate the thumbnail at this particular

                 size. -->



                rdf:about="/pics/2003 10 25 Eighty Days Photoshoot/PICT3257.JPG?size=133">








              <rdf:Description rdf:about="/pics/2003 10 25 Eighty Days Photoshoot/PICT3257.JPG?size=640">








              <rdf:Description rdf:about="/pics/2003 10 25 Eighty Days Photoshoot/PICT3257.JPG?size=800">








              <rdf:Description rdf:about="/pics/2003 10 25 Eighty Days Photoshoot/PICT3257.JPG?size=1024">











    <!-- The proofsheet may need to be spread over multiple 'virtual'

         pages, depending on the number of images in the directory, and

         the value of the ImagesPerProofSheet variable.

         The <pages> element contains one or more <page> elements.  Each

         <page> element has a 'number' attribute, indicating the page

         number.  The current page will have a 'current' attribute to

         indicate that. -->


      <page number="1" current="yes"/>

      <!-- A second page would appear as:

           <page number="2"/>





AxKit::App::Gallery, AxKit::App::Gallery::proofsheet, AxKit::App::Gallery::imagesheet, AxKit::App::Gallery::namespaces, AxKit::App::Gallery::Plugin, AxKit::App::Gallery::Provider


Nik Clayton,