xmlSiteMakerPy Python Content Management
Web Scripts Catalog New listings Rate your script Popular scripts Link your page to Web Scripts Catalog Top rated scripts Search in Web Scripts Catalog
Scripts Catalog: web scripts download - PHP ASP JavaScript Perl Java and others!  
ASP[1293]
ASP.NET[230]
Books[296711]
CGI and Perl[1856]
Java[889]
JavaScript[1533]
PHP[3925]
Python[47]
Remotely Hosted Scripts[771]
Tools and Utilities[977]
Web Hosting[121]
XML[16]
search
Login Web Scripts Forum Web Scripts Catalog FAQ Send us your feedback About Web Scripts Catalog


Clipart.com. Unlimited access to more than 7,000,000 clipart images, photos, fonts, and sounds!




Scripts / Python / Content Management
Visitors rating: none

xmlSiteMakerPy

This application for offline generation. From xml documents by xslt transformation.

How to run
Directory structure
How to make self pages

How to run

To generate run script generateSite.py in directory bin. Output are stored in directory output.

You can use other XSLT application - modify XSLT.py file.

Directory structure

Dir structure:

  bin/ - script for generation
  content/ - content for site
    db-xml/
      common.xml - common information 
                   about site: year, name, email
      news.xml - news of site, are showed
                 on first page
      pages.xml - list of site's pages
    pages/ - directory with page's content
      fp.xml - first page
      about.xml - this page :)
      ...
    xslt/
      other/
        pages2text.xsl - xslt for load array pageId in
                         PageRepository.py
      fp-page.xsl - xslt for first page
      site-page.xsl - xslt for any other page
  include/ - py classes
  output/ - here are stored generated pages

How to make self pages

To make self page, you must:

Create xml-content for page. F.e. I want to add page 'Poems':

  1. add to file pages.xml (in dir 'db-xml') - <page id="poems" name="Poems" descr="My Poems"/> inside tag <pages> (in this case page will be on top) or inside any <page>.
  2. create poems.xml in dir /content/pages/. f.e.
    <?xml vesrion="1.0"?>
    <page-content>
    <p>This is my poem</p>
    </page-content>
    
  3. it all. Run generateSite.py
  4. Next step if you want to add specific tags, f.e. <myTagInPoemPage/>:
    <?xml vesrion="1.0"?>
    <page-content>
    <p>This is my poem.
    <myTagInPoemPage/>
    </p>
    </page-content>
    
    in this case you must to write xslt-transformation for this tag in file site-page.xsl (content/xslt) f.e.
    <xsl:template match="myTagInPoemPage" mode="content">
    <xsl:text>to be or not to be</xsl:text>
    </xsl:template>
    
  5. it all. Run generateSite.py
  6. Next step (or first) - changing desing - change site-page.xsl and fp-page.xsl files.
  7. Next steps - you can add you specific pages classes as PageFP, but this is other story :)...



Author: nemilya
Price: free
Version: 0.2
Platform(s): any
Rate It! Number of Votes: 0
Script Links:
  • xmlSiteMakerPy Home
  • Download/Order xmlSiteMakerPy
  • xmlSiteMakerPy Demo

  • Discuss This Script on Forum
  • Request Installation
  • Images:
    xmlSiteMakerPy xmlSiteMakerPy

    Scripts Installation

    Custom programming at freelancewell
    Freelancewell.com helps webmasters, web designers, programmers, software developers and business owners to develop their projects. Buy services with help from our secure escrow system. Deposit money and don't purchase until your project is completed. We have thousands of satisfied clients around the world. Companies of any size have used our web services.

    Visit freelancewell at www.freelancewell.com or contact at info@freelancewell.com.
    Scripts Catalog | New Listings | Get rated | Most Popular | Links to Us | Top Rated | Search DB | FAQ | Send Feedback | Advertisement | About Us
    Custom Programming All scripts presented on this site are the property of their respective owners.