Author: sylvain Date: Mon Oct 11 03:02:05 2004 New Revision: 54534 Added: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/xmlresult_template.xml (contents, props changed) cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources/blank_btn.gif (contents, props changed) Log: New samples from the GT presentation
Added: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/xmlresult_template.xml ============================================================================== --- (empty file) +++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/xmlresult_template.xml Mon Oct 11 03:02:05 2004 @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"> + + <title>XML success page</title> + <content> + <form action="./" method="GET"> + <p>${title}</p> + + <!-- Set serializer properties for clean indent output --> + <jx:set var="props" value="${Packages.org.apache.cocoon.xml.XMLUtils.createPropertiesForXML(true)}"/> + <jx:set var="foo" value="${props.put('indent', 'yes')}"/> + <jx:set var="foo" value="${props.put('{http://xml.apache.org/xalan\}indent-amount', '2')}"/> + <pre> +${Packages.org.apache.cocoon.xml.XMLUtils.serializeNode(document, props)} + </pre> + + <input type="submit" value="Back to samples page"/> + </form> + </content> +</page> Added: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources/blank_btn.gif ============================================================================== Binary file. No diff available.
