Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/resources/stylesheets/skos-to-document.xsl URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/resources/stylesheets/skos-to-document.xsl?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/resources/stylesheets/skos-to-document.xsl (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/resources/stylesheets/skos-to-document.xsl Fri Feb 15 18:19:17 2008 @@ -15,112 +15,225 @@ See the License for the specific language governing permissions and limitations under the License. --> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" + xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" - exclude-result-prefixes="rdf skos"> + exclude-result-prefixes="rdf skos dc" + version="1.0"> <xsl:template match="/"> - <xsl:apply-templates select="rdf:RDF" /> + <xsl:apply-templates select="rdf:RDF" mode="skos.glossary"/> </xsl:template> - <xsl:template match="rdf:RDF"> + <xsl:template match="rdf:RDF" mode="skos.glossary"> <document> - <xsl:call-template name="header"/> - <xsl:call-template name="body"/> + <xsl:call-template name="skos.glossary.header"/> + <xsl:call-template name="skos.glossary.body"/> </document> </xsl:template> - <xsl:template name="header"> + <xsl:template name="skos.glossary.header"> <header> - <title>Glossary</title> + <xsl:call-template name="skos.glossary.title"/> </header> </xsl:template> - <xsl:template name="body"> + <xsl:template name="skos.glossary.title"> + <title> + <xsl:choose> + <xsl:when test="rdf:Description/dc:title"> + <xsl:value-of select="rdf:Description[1]/dc:title[1]"/> + </xsl:when> + <xsl:otherwise> + <!-- FIXME: il8n --> + <xsl:message terminate="no"> + <xsl:text>WARNING: No title found for the glossary.</xsl:text> + </xsl:message> + <xsl:text>Glossary</xsl:text> + </xsl:otherwise> + </xsl:choose> + </title> + </xsl:template> + <xsl:template name="skos.glossary.body"> <xsl:variable name="concepts"> <xsl:for-each select="skos:Concept"> - <!-- Sort wrapping sections --> <xsl:sort select="skos:prefLabel"/> - <xsl:copy-of select="."/> + <xsl:copy-of select="."/> </xsl:for-each> </xsl:variable> + <!-- upper/lower-case letters for case conversion --> + <xsl:variable name="ucl">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable> + <xsl:variable name="lcl">abcdefghijklmnopqrstuvwxyz</xsl:variable> + <body> - <!-- Ignore terms starting with the same letter except the first one. --> - <xsl:for-each select="exsl:node-set($concepts)/skos:Concept[not(substring(skos:prefLabel, 1, 1)=substring(following-sibling::skos:Concept/skos:prefLabel, 1, 1))]"> - <xsl:variable name="first-char" - select="substring(skos:prefLabel, 1, 1)"/> - <section id="{$first-char}"> + <xsl:if test="rdf:Description"> + <section> <title> - <xsl:value-of select="$first-char"/> - </title> - <xsl:apply-templates - select="../*[substring(skos:prefLabel, 1, 1)=$first-char]"> - <!-- Sort terms inside a wrapping section --> - <xsl:sort select="skos:prefLabel"/> + <!-- FIXME: il8n --> + <xsl:text>Description</xsl:text> + </title> + <xsl:apply-templates select="rdf:Description" mode="skos.glossary"/> + </section> + </xsl:if> + + <!-- Ignore terms starting with the same letter except the first one --> + <!-- FIXME: use of exsl is not necessary --> + <xsl:for-each select="exsl:node-set($concepts)/skos:Concept[not(translate(substring(skos:prefLabel, 1, 1), $ucl, $lcl)=translate(substring(following-sibling::skos:Concept/skos:prefLabel, 1, 1), $ucl, $lcl))]"> + <xsl:variable name="firstChar" select="substring(skos:prefLabel, 1, 1)"/> + + <section id="{$firstChar}"> + <title> + <xsl:value-of select="translate($firstChar, $lcl, $ucl)"/> + </title> + <xsl:apply-templates select="../*[substring(skos:prefLabel, 1, 1)=$firstChar]" mode="skos.glossary"> + <!-- Sort terms inside a wrapping section --> + <xsl:sort select="skos:prefLabel"/> </xsl:apply-templates> - </section> + </section> </xsl:for-each> </body> </xsl:template> - <xsl:template match="skos:Concept"> - <xsl:call-template name="concept"/> + <xsl:template match="skos:Concept" mode="skos.glossary"> + <xsl:call-template name="skos.glossary.concept"/> </xsl:template> - <xsl:template match="skos:prefLabel"> - <dt> - <strong> - <xsl:apply-templates/> - </strong> - </dt> + <xsl:template match="skos:prefLabel" mode="skos.glossary"> + <strong> + <xsl:apply-templates/> + </strong> + <!-- FIXME: il8n --> + <xsl:if test="position() != last()"> + <xsl:text>, </xsl:text> + </xsl:if> </xsl:template> - <xsl:template match="skos:definition"> + <xsl:template match="skos:definition" mode="skos.glossary"> <li class="{local-name(.)}"> - <xsl:apply-templates/> + <xsl:apply-templates mode="skos.glossary"/> </li> </xsl:template> - <xsl:template name="concept"> + <xsl:template name="skos.glossary.concept"> <dl class="concept" id="{skos:prefLabel[1]/text()}"> - <xsl:apply-templates select="skos:prefLabel[1]"/> + <dt> + <xsl:apply-templates select="skos:prefLabel" mode="skos.glossary"/> + </dt> <dd class="definition"> - <ol> - <xsl:apply-templates select="skos:definition"/> - </ol> + <ul> + <xsl:apply-templates select="skos:definition" mode="skos.glossary"/> + </ul> </dd> - + <xsl:apply-templates select="rdfs:*" mode="skos.glossary"/> <xsl:if test="skos:related"> <dd class="related"> - <!-- il8n? --> - <p>See Also:</p> + <!-- FIXME: il8n --> + <p>See Also:</p> <ul> - <xsl:apply-templates select="skos:related"/> + <xsl:apply-templates select="skos:related" mode="skos.glossary"/> </ul> - </dd> + </dd> </xsl:if> </dl> </xsl:template> - <xsl:template match="skos:related"> + <xsl:template match="skos:related" mode="skos.glossary"> <xsl:variable name="relatedConcept" - select="@rdf:resource"/> + select="@rdf:resource"/> <xsl:for-each select="../../skos:Concept"> <xsl:if test="$relatedConcept = @rdf:about"> - <li class="related"> + <li class="related"> <link href="#{skos:prefLabel/text()}"> - <xsl:value-of select="skos:prefLabel/text()"/> + <xsl:value-of select="skos:prefLabel/text()"/> </link> </li> </xsl:if> </xsl:for-each> + </xsl:template> + + <xsl:template match="/*/rdf:Description" mode="skos.glossary"> + <xsl:apply-templates select="*|@*" mode="skos.glossary"/> + </xsl:template> + + <xsl:template match="@rdf:about[. != '']" mode="skos.glossary"> + <p class="{local-name(.)}"> + <strong> + <!-- FIXME: il8n --> + <xsl:text>Identifier: </xsl:text> + </strong> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="."/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:call-template name="skos.glossary.title"/> + </xsl:attribute> + <xsl:value-of select="."/> + </a> + </p> + </xsl:template> + + <xsl:template match="dc:title" mode="skos.glossary"></xsl:template> + + <xsl:template match="dc:date" mode="skos.glossary"> + <p class="{local-name(.)}"> + <strong> + <!-- FIXME: il8n --> + <xsl:text>Date: </xsl:text> + </strong> + <span> + <xsl:apply-templates/> + </span> + </p> + </xsl:template> + + <xsl:template match="dc:description" mode="skos.glossary"> + <p class="{local-name(.)}"> + <xsl:apply-templates/> + </p> + </xsl:template> + + <xsl:template match="rdfs:isDefinedBy" mode="skos.glossary"> + <p class="{local-name(.)}"> + <strong> + <!-- FIXME: il8n --> + <xsl:text>Source: </xsl:text> + </strong> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@rdf:resource"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:call-template name="skos.glossary.title"/> + </xsl:attribute> + <xsl:value-of select="@rdf:resource"/> + </a> + </p> + </xsl:template> + + <xsl:template match="/*/rdf:Description/dc:rights" mode="skos.glossary"> + <p class="{local-name(.)}"> + <strong> + <!-- FIXME: il8n --> + <xsl:text>Legal Notice: </xsl:text> + </strong> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@rdf:resource"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:call-template name="skos.glossary.title"/> + </xsl:attribute> + <xsl:value-of select="@rdf:resource"/> + </a> + </p> </xsl:template> </xsl:stylesheet>
Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/index.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/index.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/index.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/index.xml Fri Feb 15 18:19:17 2008 @@ -16,7 +16,7 @@ limitations under the License. --> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" - "http://forrest.apache.org/dtd/document-v20.dtd"> + "http://forrest.apache.org/dtd/document-v20.dtd"> <document> <header> <title>Welcome to SKOS Plugin for Forrest</title> @@ -26,9 +26,9 @@ <title>Apache Forrest - SKOS Plugin</title> <p> Rendering <a href="ext:skos">SKOS</a>, a set of - <a href="ext:skos/specs">specifications</a> to - support the representation of thesauri, classification schemes, - taxonomies, etc. + <a href="ext:skos/specs">specifications</a> to + support the representation of thesauri, classification schemes, + taxonomies, etc. </p> </section> <section id="samples"> @@ -38,47 +38,65 @@ </note> <p> This section includes samples that have been made available so far to - demonstrate the existing functionalities of the plugin. + demonstrate the existing functionalities of the plugin. </p> <section id="glossary"> <title>Glossary</title> <p> - This sample generates a <a href="site:glossary">glossary</a> from - a collection of <code>skos:Concept</code>s written in RDF/XML format. + This sample generates a glossary from a collection of + <code>skos:Concept</code>s written in RDF/XML format. + An example would be: </p> - <p>An example would be:</p> <source> <![CDATA[ -<skos:Concept rdf:about="http://forrest.apache.org/docs/glossary#Dispatcher"> - <skos:prefLabel>Dispatcher</skos:prefLabel> +<rdf:Description rdf:about="http://example.org/glossary/logic#"> + <dc:title>Glossary of Logic</dc:title> + ... +</rdf:Description> + +<skos:Concept rdf:about="http://example.org/glossary/logic#categorical_proposition"> + <skos:prefLabel>categorical proposition</skos:prefLabel> <skos:definition> ... </skos:definition> <skos:definition> ... </skos:definition> - <skos:related rdf:resource="http://forrest.apache.org/docs/glossary#Contracts"/> + <skos:related rdf:resource="http://example.org/glossary/logic#proposition"/> </skos:Concept> ]]> </source> - <note> - We <a href="site:todo">plan</a> to provide a wider support - for the format in the near future. - </note> <p> - To retrieve the glossary file in its raw form --SKOS RDF/XML, please - request the file <code>samples/glossary-skos/source.xml</code>. + A map of available glossaries must be provided in the + <a href="ext:forrest/locationmap">locationmap</a>, + which is by default located in <code>{properties:content}</code>. The + following example shows how to map glossaries in the locationmap. </p> + <source> +<![CDATA[ + <match pattern="skos.glossary.logic"> + <location src="http://example.org/glossary/logic.rdf"/> + </match> + <match pattern="skos.glossary.string-theory"> + <location src="{properties:content}skos/glossaries/string-theory.rdf"/> + </match> +]]> + </source> <p> - To retrieve the glossary in other formats, please request the file - <code>samples/glossary-skos.[FORMAT]</code>. The following formats are - currently supported: + Here are some requests served by the plugin. </p> <ul id="glossary-formats"> - <li><a href="site:glossary">HTML</a></li> - <li><a href="/samples/glossary-skos.pdf">PDF</a></li> - <li><a href="/samples/glossary-skos.xml">XDoc</a></li> - </ul> + <li> + <a href="site:glossary/all">List of all available glossaries</a> + </li> + <li> + An example glossary published by W3C in + <a href="/samples/glossary/rdf-mt.html">HTML</a>, + <a href="/samples/glossary/rdf-mt.pdf">PDF</a>, + <a href="/samples/glossary/rdf-mt.rdf">RDF</a>, and + <a href="/samples/glossary/rdf-mt.xml">XDoc</a> formats. + </li> + </ul> </section> </section> </body> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/samples/index.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/samples/index.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/samples/index.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/samples/index.xml Fri Feb 15 18:19:17 2008 @@ -15,8 +15,8 @@ See the License for the specific language governing permissions and limitations under the License. --> -<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" - "http://forrest.apache.org/dtd/document-v20.dtd"> +<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" + "http://forrest.apache.org/dtd/document-v20.dtd"> <document> <header> <title>Forrest SKOS Pligun - Samples</title> @@ -26,16 +26,22 @@ <title>Samples</title> <p> Samples that have been made available so far to - show the current functionality of the plugin. + show the current functionality of the plugin. </p> <section id="glossary"> <title>Glossary</title> <ul id="glossary-formats"> - <li><a href="/samples/glossary-skos.html">HTML</a></li> - <li><a href="/samples/glossary-skos.pdf">PDF</a></li> - <li><a href="/samples/glossary-skos.xml">XDoc</a></li> - <li><a href="/samples/glossary-skos/source.xml">SKOS</a></li> - </ul> + <li> + <a href="site:glossary/all">List of all available glossaries</a> + </li> + <li> + An example glossary published by W3C in + <a href="/samples/glossary/rdf-mt.html">HTML</a>, + <a href="/samples/glossary/rdf-mt.pdf">PDF</a>, + <a href="/samples/glossary/rdf-mt.rdf">RDF</a>, and + <a href="/samples/glossary/rdf-mt.xml">XDoc</a> formats. + </li> + </ul> </section> </section> </body> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/site.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/site.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/site.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/site.xml Fri Feb 15 18:19:17 2008 @@ -37,20 +37,20 @@ <!-- About --> <about label="About"> <index label="Overview" href="index.html" - description="Home for Forrest SKOS Plugin"/> + description="Home for Forrest SKOS Plugin"/> <changes label="Changes" href="changes.html" - description="Keeping Track of Changes" /> + description="Keeping Track of Changes" /> <todo label="Todo" href="todo.html" description="Todo List" /> </about> <!-- /About --> <!-- Samples --> <samples label="Samples" href="samples/"> - <index label="Overview" href="index.html" - description="Samples demonstrating the current functionality of the - plugin"/> - <glossary label="Glossary" href="glossary-skos.html" - description="A Simple SKOS glossary in Forrest"/> + <index label="Overview" href="index.html" description="Samples + demonstrating the current functionality of the plugin"/> + <glossary label="Glossary" href="glossary/"> + <all label="All" href="index/all.html"/> + </glossary> </samples> <!-- /Samples --> @@ -62,6 +62,7 @@ <webapp href="docs/your-project.html#webapp"/> <dtd-docs href="docs/dtd-docs.html"/> <plugins href="docs/plugins"/> + <locationmap href="docs/locationmap.html"/> </forrest> <skos href="http://www.w3.org/2004/02/skos/"> <specs href="specs"/> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/tabs.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/tabs.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/tabs.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/content/xdocs/tabs.xml Fri Feb 15 18:19:17 2008 @@ -15,24 +15,31 @@ See the License for the specific language governing permissions and limitations under the License. --> -<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd"> -<tabs software="" - title="MyProj" - copyright="Foo" - xmlns:xlink="http://www.w3.org/1999/xlink"> -<!-- The rules for tabs are: +<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" + "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd"> +<tabs software="org.apache.forrest.plugin.input.skos" + title="SKOS Plugin" + copyright="The Apache Software Foundation" + xmlns:xlink="http://www.w3.org/1999/xlink"> + + <!-- + The rules for tabs are: @dir will always have '/@indexfile' added. - @indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html' + @indexfile gets appended to @dir if the tab is selected. Defaults to + 'index.html' @href is not modified unless it is root-relative and obviously specifies a directory (ends in '/'), in which case /index.html will be added - If @id's are present, site.xml entries with a matching @tab will be in that tab. + If @id's are present, site.xml entries with a matching @tab will be in + that tab. - Tabs can be embedded to a depth of two. The second level of tabs will only - be displayed when their parent tab is selected. + Tabs can be embedded to a depth of two. The second level of tabs will + only be displayed when their parent tab is selected. --> - <tab id="plugins" label="Forrest Plugins" href="http://forrest.apache.org/pluginDocs" indexfile="index.html"/> + <tab id="plugins" label="Forrest Plugins" + href="http://forrest.apache.org/pluginDocs" indexfile="index.html"/> <tab id="home" label="Plugin Home" dir="" indexfile="index.html"/> -<!-- Add new tabs here, eg: + <!-- + Add new tabs here, eg: <tab label="How-Tos" dir="community/howto/"/> <tab label="XML Site" dir="xml-site/"/> --> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/skinconf.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/skinconf.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/skinconf.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/src/documentation/skinconf.xml Fri Feb 15 18:19:17 2008 @@ -22,6 +22,7 @@ <skinconfig> &skinconf-common; - <project-name>Plugin: org.apache.forrest.plugin.input.skos</project-name> - <project-description>org.apache.forrest.plugin.input.skos plugin for Apache Forrest</project-description> + <project-name>Plugin: SKOS</project-name> + <project-url>http://sina.khakbaz.com:8888/</project-url> + <project-description>SKOS plugin for Apache Forrest</project-description> </skinconfig> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/status.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/status.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/status.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.input.skos/status.xml Fri Feb 15 18:19:17 2008 @@ -37,11 +37,14 @@ <release version="0.1" date="not-released"> <action dev="SKH" type="update" context="code" fixes-bug="FOR-1005"> Improved the Sitemap (input.xmap) to use the sourcetypeaction for - handling requests to process input formats. + handling requests to process input formats. + </action> + <action dev="SKH" type="add" context="design"> + Switched to Dispatcher as the rendering engine. </action> <action dev="SKH" type="add" context="code"> Added automatic glossary divisions. Glossary terms starting with the - same letter are all wrapped by the same section. + same letter are all wrapped by the same section. </action> <action dev="SKH" type="add" context="admin"> Initial plugin code. @@ -60,18 +63,15 @@ </action> <action context="design" dev="SKH"> Provide support for concept relationships so as to support taxonomies, - etc. - </action> - <action context="design" dev="SKH"> - Using the Dispatcher as the rendering engine. + etc. </action> <action context="code" dev="SKH"> Writing CSS stylesheets and Javascript to have a reach, yet simple - user interface. + user interface. </action> <action context="design" dev="SKH"> Making the output as compliant as possible to accessibility and - usability requirements. + usability requirements. </action> </actions> <actions priority="low"> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/how/perFolderThemes/subFolder/index.xml URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/how/perFolderThemes/subFolder/index.xml?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/how/perFolderThemes/subFolder/index.xml (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/content/xdocs/how/perFolderThemes/subFolder/index.xml Fri Feb 15 18:19:17 2008 @@ -23,6 +23,6 @@ </header> <body> <p>This file has another customised theme, in this case we have stripped both - the pdf and the breadcrumb trail.</p> + the pdf and the fontsize trail.</p> </body> </document> Modified: forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/how/perFolderThemes/subFolder/pelt.fv URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/how/perFolderThemes/subFolder/pelt.fv?rev=628226&r1=628225&r2=628226&view=diff ============================================================================== --- forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/how/perFolderThemes/subFolder/pelt.fv (original) +++ forrest/branches/UpdateFOPto094/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/documentation/resources/structurer/url/how/perFolderThemes/subFolder/pelt.fv Fri Feb 15 18:19:17 2008 @@ -30,273 +30,14 @@ </forrest:view> <!-- HTML View of the request (e.g. index.html)--> <forrest:view type="html" hooksXpath="/html/body"> - <forrest:contract name="branding-css-links"> -<!-- More information around this contract - http://marc.theaimsgroup.com/?l=forrest-dev&m=113473237805195&w=2 - --> -<!--Note: The forrest:properties element does not exit anymore (in comparison to a previous versions) --> - <forrest:property name="branding-css-links-input"> - <css url="common.css" media="screen" rel="alternate stylesheet" - theme="common"/> - <css url="leather-dev.css" media="screen" rel="alternate stylesheet" - theme="common"/> - <css url="pelt.screen.css" media="screen" theme="Pelt"/> -<!-- You can request url specific css as defined above, - but beware that you need to use the *.dispatcher.css extension!!!--> - <css prefix="" url="#{$getRequest}.dispatcher.css" media="screen" theme="Pelt"/> - <css url="pelt.print.css" media="print"/> - <css>/* Extra css */ -p.quote { - margin-left: 2em; - padding: .5em; - background-color: #f0f0f0; - font-family: monospace; -}</css> - </forrest:property> - </forrest:contract> - <forrest:contract name="siteinfo-meta" dataURI="lm://project.build-info"> - <forrest:property name="custom"> - <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> - </forrest:property> - <forrest:property name="theme" value="pelt"/> - </forrest:contract> - <forrest:contract name="siteinfo-meta-navigation" - dataURI="cocoon://#{$getRequest}.navigation.xml"/> - <forrest:contract name="siteinfo-meta-icon"> - <forrest:property name="siteinfo-meta-icon"> - <favicon-url>favicon.ico</favicon-url> - </forrest:property> - </forrest:contract> - <forrest:hook name="container"> - <forrest:hook name="header"> - <forrest:contract name="branding-tagline"> - <forrest:property name="branding-tagline-name">new - seed</forrest:property> - <forrest:property name="branding-tagline-tagline">powered by the - dispatcher</forrest:property> - </forrest:contract> - <forrest:hook class="logo"> - <forrest:contract name="branding-logo"> - <forrest:property name="branding-logo-name"> - MyGroup</forrest:property> - <forrest:property name="branding-logo-description">MyGroup - Description</forrest:property> - <forrest:property name="branding-logo-url"> - http://mygroup.org/</forrest:property> - <forrest:property name="branding-logo-logo"> - images/group.png</forrest:property> - </forrest:contract> + <jx:import uri="cocoon://prepare.panels.pelt-html.head"/> + <forrest:hook name="container"> + <jx:import uri="cocoon://prepare.panels.pelt-html.header"/> + <forrest:hook name="page"> + <jx:import uri="cocoon://prepare.panels.pelt-html.leftbar"/> + <jx:import uri="cocoon://prepare.panels.pelt-html.content-specific"/> </forrest:hook> - <forrest:hook class="logo"> - <forrest:contract name="branding-logo"> - <forrest:property name="branding-logo-name"> - MyProject</forrest:property> - <forrest:property name="branding-logo-description">MyProject - Description</forrest:property> - <forrest:property name="branding-logo-url"> - http://myproj.mygroup.org/</forrest:property> - <forrest:property name="branding-logo-logo"> - images/project.png</forrest:property> - </forrest:contract> - </forrest:hook> - <forrest:contract name="helper-form-blank"/> - <forrest:contract name="search-input"> - <forrest:property name="input-size">25</forrest:property> - <forrest:property name="search-input"> - <search name="MyProject" domain="mydomain" provider="google"/> - </forrest:property> - </forrest:contract> - <forrest:hook name="nav-main-hook"> - <forrest:contract name="nav-main" - dataURI="cocoon://#{$getRequest}.navigation.xml"/> - <forrest:hook name="publishedStrip" nbsp="true"> - <forrest:contract name="nav-main-sub" - dataURI="cocoon://#{$getRequest}.navigation.xml"/> - <forrest:contract name="siteinfo-last-published"/> - </forrest:hook> - </forrest:hook> - </forrest:hook> - <forrest:hook name="page"> - <forrest:hook class="breadtrail" nbsp="true" /> -<!--<forrest:contract name="branding-breadcrumbs"> - <forrest:property name="branding-breadcrumbs"> - <trail> - <link1 name="myGroup" href="http://www.apache.org/"/> - <link2 name="myProject" href="http://forrest.apache.org/"/> - <link3 name="" href=""/> - </trail> - </forrest:property> - </forrest:contract>--> - <forrest:hook name="leftbar"> - <forrest:contract name="nav-section" - dataURI="cocoon://#{$getRequest}.navigation.xml"> - <forrest:property name="nav-section-toc" nugget="get.tov"> - <jx:import - uri="cocoon://#{$cocoon/parameters/getRequest}.toc.xml"/> - </forrest:property> - <forrest:property name="expanding">true</forrest:property> -<!--<forrest:property name="toc" max-depth="2"/>--> - </forrest:contract> -<!-- <forrest:contract name="genericMarkup"> - <forrest:property name="genericMarkup"> - <hr/> - </forrest:property> - </forrest:contract>--> -<!-- <forrest:contract name="search-input"> - <forrest:property name="input-size">18</forrest:property> - <forrest:property name="search-input"> - <search name="MyProject" domain="mydomain" provider="google"/> - </forrest:property> - </forrest:contract>--> - <forrest:contract name="siteinfo-credits"> - <forrest:property name="box-location">credit</forrest:property> - <forrest:property name="top-separator">true</forrest:property> -<!--<forrest:property name="siteinfo-credits"> - <credits> - <credit> - <name>Built with Apache Forrest</name> - <url>http://forrest.apache.org/</url> - <image>images/built-with-forrest-button.png</image> - <width>88</width> - <height>31</height> - </credit> - </credits> - </forrest:property>--> - </forrest:contract> -<!-- <forrest:contract name="genericMarkup"> - <forrest:property name="genericMarkup"> - <hr/> - </forrest:property> - </forrest:contract>--> - <forrest:contract name="content-motd-page"> - <forrest:property name="content-motd-page"> - <motd> -<!--FIXME: motd-page location needs removing -These options are not effective anymore in dispatcher - Need to be removed in Structurer and contracts usage/decription--> -<!--<motd-option pattern="index.html"> - <motd-title>sample</motd-title> - <motd-page location="page"> - This is an example of a Message of the day (MOTD). - </motd-page> - <motd-page-url>index.html</motd-page-url> - </motd-option>--> - <motd-option pattern="samples/faq.html"> - <motd-title></motd-title> - <motd-page location="both"> How to enable this MOTD is on - this page. </motd-page> - <motd-page-url>#motd</motd-page-url> - </motd-option> - </motd> - </forrest:property> - </forrest:contract> - <forrest:contract name="nav-section-round-bottom"/> -<!-- This content displays below the navigation. the below example displays - ApacheCon logos and links, but can be used for whatever, or commented out - <forrest:hook name="below-nav"> - <forrest:contract name="siteinfo-credits"> - <forrest:property name="box-location">credit2</forrest:property> - <forrest:property name="top-separator">false</forrest:property> - <forrest:property name="use-br">false</forrest:property> - <forrest:property name="siteinfo-credits"> - <credits> - <credit> - <name>ApacheCon Europe 2007</name> - <url>http://apachecon.com/2007/EU/</url> - <image>http://apache.org/ads/ApacheCon/2007-europe-125x125.png</image> - <width>125</width> - <height>125</height> - </credit> - <credit> - <name>ApacheCon US 2007</name> - <url>http://people.apache.org/calendar.html#200711</url> - <image>http://apache.org/ads/ApacheCon/2007-usa-125x125.png</image> - <width>125</width> - <height>125</height> - </credit> - </credits> - </forrest:property> - </forrest:contract> -</forrest:hook>--> -<!-- end of below-nav content --> - </forrest:hook> - <forrest:hook name="content"> -<!-- FIXME - Problem with ndeSetTextSize() script from fontsize.js not compliant between Pelt and Leather-dev... --> - <forrest:hook class="trail"> - <forrest:contract name="branding-fontsize"/> - </forrest:hook> - <forrest:contract name="content-title" - dataURI="cocoon://#{$getRequest}.title.xml"/> - <forrest:contract name="content-abstract" - dataURI="cocoon://#{$getRequest}.abstract.xml"/> - <forrest:contract name="content-minitoc" - dataURI="cocoon://#{$getRequest}.toc.xml"> - <forrest:property name="content-minitoc-conf" max-depth="2" - min-sections="1" location="page"/> - </forrest:contract> - <forrest:contract name="content-main" - dataURI="cocoon://#{$getRequest}.body.xml"> - <forrest:property name="content-main-conf"> - <headings type="underlined"/> - </forrest:property> - </forrest:contract> -<!-- - <forrest:contract name="content-authors"> - <forrest:property name="content-authors" nugget="get.authors"> - <jx:import uri="cocoon://#{$cocoon/parameters/getRequest}.authors.xml"/> - </forrest:property> - </forrest:contract> - --> - </forrest:hook> - </forrest:hook> - <forrest:hook name="footer"> - <forrest:hook class="lastmodified"> - <forrest:contract name="siteinfo-last-published"/> - </forrest:hook> - <forrest:hook class="copyright"> - <forrest:contract name="siteinfo-copyright"> - <forrest:property name="siteinfo-copyright"> - <copyright> - <year inception="true">2002</year> - <vendor>The Example Organisation.</vendor> - <copyright-link>http://example.org</copyright-link> - </copyright> - </forrest:property> - </forrest:contract> - </forrest:hook> - <forrest:contract name="siteinfo-compliance-links"/> - <forrest:contract name="siteinfo-credits"> - <forrest:property name="box-location">credit</forrest:property> - <forrest:property name="top-separator">false</forrest:property> - <forrest:property name="use-br">false</forrest:property> - <forrest:property name="siteinfo-credits"> - <credits> - <credit> - <name>Built with Apache Forrest</name> - <url>http://forrest.apache.org/</url> - <image>images/built-with-forrest-button.png</image> - <width>88</width> - <height>31</height> - </credit> - <credit role="accueil"> - <name>Built with Cocoon</name> - <url>http://cocoon.apache.org/</url> - <image>http://forrest.apache.org/images/built-with-cocoon.gif</image> - </credit> - </credits> - </forrest:property> - </forrest:contract> -<!-- <forrest:contract name="siteinfo-feedback"> - <forrest:properties contract="siteinfo-feedback"> - <forrest:property name="siteinfo-feedback"> - <feedback to="the Webmaster" - href="mailto:[EMAIL PROTECTED] " > - Send feedback about the website to: - </feedback> - </forrest:property> - </forrest:properties> - </forrest:contract>--> + <jx:import uri="cocoon://prepare.panels.pelt-html.footer"/> </forrest:hook> - </forrest:hook> </forrest:view> </forrest:views>
