| <?xml version="1.0" encoding="iso-8859-1"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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:cinclude="http://apache.org/cocoon/include/1.0" |
| > |
| |
| <content> |
| <h2>Other types of input</h2> |
| <p> |
| Until now our pipelines have all started with the <em>RequestGenerator</em>. Let's see a |
| different example, where we retrieve an external XML document via HTTP. |
| </p> |
| <p> |
| This example requires access to the |
| <a href="http://codeconsult.ch/bertrand/index.rdf"> |
| http://codeconsult.ch/bertrand/index.rdf |
| </a> |
| XML newsfeed. |
| </p> |
| <p> |
| View the result in your browser: <a href="../xmlnews.html">xmlnews.html</a> |
| </p> |
| |
| <h3>Sitemap excerpt</h3> |
| <cinclude:include element="xml-code" src="cocoon:/xml-element/pipelines/sitemap.xmap/xmlNews"/> |
| |
| <h3>XSL transform</h3> |
| <p>Here we show only the conversion of rss:item elements</p> |
| <cinclude:include ignoreErrors="true" element="xml-code" src="cocoon:/xml-element/pipelines/xsl/news-to-html.xsl/rssItem"/> |
| |
| <h3>Typical output</h3> |
| <cinclude:include element="xml-code" src="cocoon:/pipelines/xmlnews.html"/> |
| </content> |
| </page> |