Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 28245 invoked by uid 500); 16 Jun 2002 07:10:29 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 28235 invoked by uid 500); 16 Jun 2002 07:10:29 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 16 Jun 2002 07:10:28 -0000 Message-ID: <20020616071028.30267.qmail@icarus.apache.org> From: crossley@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/webapp/samples/misc/catalog article.xml catalog-demo.xml sdocbook-demo.html sdocbook2body.xsl style.xsl testovr.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N crossley 2002/06/16 00:10:27 Modified: src/webapp/samples samples.xml Added: src/webapp/samples/misc samples.xml sitemap.xmap src/webapp/samples/misc/catalog article.xml catalog-demo.xml sdocbook-demo.html sdocbook2body.xsl style.xsl testovr.xml Log: Refactored another sample. Set up a "miscellaneous" page to hold some samples that do not fit neatly into other categories of sample. Started with the Entity Resolution Using Catalogs sample. Added new sample for Simplified DocBook DTDs configuration. Revision Changes Path 1.11 +11 -4 xml-cocoon2/src/webapp/samples/samples.xml Index: samples.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/samples.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- samples.xml 13 Jun 2002 10:31:23 -0000 1.10 +++ samples.xml 16 Jun 2002 07:10:27 -0000 1.11 @@ -13,7 +13,7 @@ is transformed into an HTML page. - Here it's outputted as XHTML. + Here it is output as XHTML. The XML page is transformed into a plain text page. @@ -90,7 +90,7 @@ - Interenationalization with Cocoon + Internationalization with Cocoon @@ -110,6 +110,9 @@ Search into the cocoon documentation using Apache Lucene. + + Verify that there are no broken hyperlinks in the Cocoon documentation. + @@ -149,9 +152,13 @@ and simple web-application with login and protected resources. - + Samples showing how to use Apache POI to use common office file formats with Cocoon. + + + + Other samples: Catalog entity resolver, ... 1.1 xml-cocoon2/src/webapp/samples/misc/samples.xml Index: samples.xml =================================================================== to Cocoon examples main page Catalog entity resolver. External entities (e.g. DTDs, symbols, character entity sets, images) are resolved to local copies of the resources. The catalog manager facilitates the mapping between public identifiers or system identifiers and other system identifiers. You will need the DocBook DTDs installed locally and the catalog properly configured. FIXME: need a default third group, or this page will not render. 1.1 xml-cocoon2/src/webapp/samples/misc/sitemap.xmap Index: sitemap.xmap =================================================================== 1.1 xml-cocoon2/src/webapp/samples/misc/catalog/article.xml Index: article.xml ===================================================================
Catalog demonstration - Simplified DocBook DTD Here is a subtitle This is an introduction paragraph.
This is the first top-level section Another paragraph.
This is a second-level section with its own paragraph.
This is the second top-level section The logo below is included using a mediaobject element containing an imageobject element.
1.1 xml-cocoon2/src/webapp/samples/misc/catalog/catalog-demo.xml Index: catalog-demo.xml =================================================================== %ISOnum; ]>
This sample application demonstrates the use of catalogs for entity resolution. ¬e; see the Apache Cocoon documentation Entity resolution with catalogs for the full background and explanation, and the XML source of this document (catalog-demo.xml). This top-level XML instance document is catalog-demo.xml - it declares three other XML sub-documents as external entities and then includes them in the sections below. The real system identifiers will be looked up in the catalog, to resolve the actual location of the resource. The Document Type Definition (DTD) is declared using both a public identifier and a system identifier. The system identifier for the DTD is a network-based resource (which is deliberately non-existent). However, the catalog overrides that remote DTD to instead use a copy from the local filesystem at the location defined by the catalog entry. Note that it is via the use of a public identifier that we gain this power. The internal DTD subset of the top-level document instance goes on to declare the three external sub-document entities using various means. It also declares and includes the ISOnum set of character entities, so that we can use entities like &frac12; (to represent ½). Finally the internal DTD subset declares an internal general entity for "note".
testpub ... this entity is declared with a PUBLIC identifier and a bogus system identifier (which will be overridden by the catalog) &testpub;
testsys ... this entity is declared with a SYSTEM identifier (which will be resolved by the catalog) &testsys;
testovr ... is declared with a PUBLIC identifier and a system identifier (the catalog is set to not override this one, so the declared system identifier is used) &testovr;
1.1 xml-cocoon2/src/webapp/samples/misc/catalog/sdocbook-demo.html Index: sdocbook-demo.html =================================================================== Demonstration of Catalog Entity Resolver and Simplified DocBook

Demonstration of Catalog Entity Resolver and Simplified DocBook

The Apache Cocoon documentation Entity resolution with catalogs has a section "Example local configuration for Simplified DocBook". Do that and then ...

See the sdocbook-demo

If you get a FileNotFoundException, then you have not configured the OASIS catalog properly.

1.1 xml-cocoon2/src/webapp/samples/misc/catalog/sdocbook2body.xsl Index: sdocbook2body.xsl =================================================================== <xsl:value-of select="article/title"/>





<xsl:value-of select="honorific"/><xsl:text>. </xsl:text> <xsl:value-of select="firstname"/><xsl:text> </xsl:text> <xsl:value-of select="surname"/>

Author: .


Affiliations


  • [] /
  • Bio

    Revision History

    Revision History


    Revision ()

  • added changed deleted off changed ()
  • %
    +1 +0 -


    pub.


    Dedication


    Copyright © by .
    All rights reserved.

                    
                  
    ()
    {@srccredit}
    TM
    1.1 xml-cocoon2/src/webapp/samples/misc/catalog/style.xsl Index: style.xsl =================================================================== %ISOnum; ]> Demonstration of entity resolution using catalogs

    This footer is applied by the stylesheet. The following entity is resolved by the parser when it interprets the stylesheet
    Use &frac14; to represent ¼ (one-quarter symbol)
    The ISOnum entity set was declared in the header of the stylesheet.


    1.1 xml-cocoon2/src/webapp/samples/misc/catalog/testovr.xml Index: testovr.xml =================================================================== ¬e; This paragraph is automatically included from the testovr.xml external file. The location of this entity was not resolved by the catalog, because there is no matching catalog entry for its public identifier or its system identifier. So the declared system identifier is used, i.e. the file is retrieved relative to the top-level document. ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org