Changeset 6115

Show
Ignore:
Timestamp:
01/20/12 18:18:45 (4 months ago)
Author:
mtld
Message:

updated docs

Location:
trunk/pustefix-docbook/src/docbkx/reference
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pustefix-docbook/src/docbkx/reference/news.xml

    r6058 r6115  
    149149  </section> 
    150150 
     151  <section xml:id="news.0_18_5"> 
     152    <title>What's new in Pustefix 0.18.5</title> 
     153 
     154    <section xml:id="news.0_18_5.cmis"> 
     155      <title>CMIS support</title> 
     156      <para> 
     157        Added basic support for loading resources from content management systems using CMIS/AtomPub.  
     158      </para> 
     159    </section> 
     160   <section xml:id="news.0_18_5.pagealiases"> 
     161      <title>Page aliases</title> 
     162      <para> 
     163        Added XPath function to get current display page name during rendering (see <xref linkend="xslt.extensions.xpathfunctions.getdisplaypagename"/>). 
     164      </para> 
     165    </section> 
     166 
     167  </section> 
     168 
     169  <section xml:id="news.0_18_6"> 
     170    <title>What's new in Pustefix 0.18.6</title> 
     171 
     172    <section xml:id="news.0_18_.xslt"> 
     173      <title>Include part existence check</title> 
     174      <para> 
     175        Pustefix added support for checking the existence of an include part during rendering, e.g. for displaying an include part depending on the existence of another include part (see <xref linkend="xslt.pfx.checkinclude"/>). 
     176      </para> 
     177    </section> 
     178 
     179  </section> 
     180 
    151181</chapter> 
  • trunk/pustefix-docbook/src/docbkx/reference/xslt.xml

    r6086 r6115  
    788788</script>]]></programlisting> 
    789789    </section> 
    790  
     790    <section xml:id="xslt.pfx.checkinclude"> 
     791      <title>Checking include part existence (&lt;pfx:checkinclude&gt;)</title> 
     792      <para> 
     793        The <literal>&lt;pfx:checkinclude&gt;</literal> and <literal>&lt;pfx:checknoinclude&gt;</literal> tags can be used to display content 
     794        depending on the existence of an include part. 
     795      </para> 
     796<programlisting language="xml"><![CDATA[<pfx:checkinclude part="foo" href="txt/afile.xml"> 
     797  Display if part exists 
     798</pfx:checkinclude> 
     799 
     800<pfx:checknoinclude part="bar" href="txt/afile.xml"> 
     801  Display if part not exists 
     802</pfx:checknoinclude 
     803 
     804<pfx:checkinclude href="txt/afile.xml" module="amodule" search="dynamic" level="runtime"> 
     805  <pfx:part><ixsl:value-of select="/formresult/displaypart/@name"/></pfx:part> 
     806  Display if part exists 
     807</pfx:checkinclude> 
     808]]></programlisting> 
     809      <para>Supported attributes and usage comply with the <literal>&lt;pfx:include&gt;</literal> element (see <xref linkend="xslt.pfx.include"/>).</para> 
     810    </section> 
    791811  </section> 
    792812 
     
    17981818        </para> 
    17991819     </note> 
     1820    <para xml:id="xslt.extensions.xpathfunctions.getdisplaypagename"> 
     1821      <emphasis role="strong">Function:</emphasis> <emphasis>string</emphasis> <emphasis role="strong">pfx:getDisplayPageName</emphasis>() 
     1822    </para> 
     1823    <para> 
     1824       The <emphasis role="strong">pfx:getDisplayPageName</emphasis> function returns the display name of the current page. 
     1825    </para> 
     1826     <para></para> 
     1827     <para> 
     1828      <emphasis role="strong">Function:</emphasis> <emphasis>boolean</emphasis> <emphasis role="strong">pfx:checkInclude</emphasis>(<emphasis>string, string, string, string</emphasis>) 
     1829    </para> 
     1830    <para> 
     1831       The <emphasis role="strong">pfx:checkInclude</emphasis> function checks if an include part exists. The function expects four string arguments: href, part, module, search (same semantics as <xref linkend="xslt.pfx.checkinclude"/>). 
     1832      The function returns: 
     1833      <itemizedlist> 
     1834          <listitem><literal>true</literal>, if the include part can be found</listitem> 
     1835          <listitem><literal>false</literal>, if the include part can't be found</listitem> 
     1836      </itemizedlist> 
     1837    </para> 
    18001838  </section> 
    18011839  </section>