Login   Register  
PHP Classes
elePHPant
Icontem

File: xmlSiteMaker/content/pages/examples.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ilya Nemihin  >  xmlSiteMaker  >  xmlSiteMaker/content/pages/examples.xml  >  Download  
File: xmlSiteMaker/content/pages/examples.xml
Role: Auxiliary data
Content type: text/plain
Description: xml content
Class: xmlSiteMaker
Offline site generator based on XML
Author: By
Last change:
Date: 11 years ago
Size: 499 bytes
 

Contents

Class file image Download
<?xml version="1.0"?>
<page-content>

<p>
  <childPageList/>
</p>

<p>
  above text are made by tag <code>&lt;childPageList/&gt;</code>
  <br/>
  xslt:
<source from="site-page.xsl"><![CDATA[
<xsl:template match="childPageList" mode="content">
  <p>
  <xsl:for-each select="/page-of-site/pages//page[ @id = /page-of-site/pageId ]/page">
    <a href="{@id}.html"><xsl:value-of select="@descr"/></a><br/>
  </xsl:for-each>
  </p>
</xsl:template>
]]></source>
</p>

</page-content>