| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" |
| "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" > |
| <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> |
| <title>servicemix-saxon</title> |
| |
| <section> |
| <title>Overview</title> |
| <para> |
| The servicemix-saxon component is a standard JBI Service Engine for XSLT / XQuery. This component is based on Saxon and supports XSLT 2.0 and XPath 2.0, and XQuery 1.0. |
| </para> |
| |
| |
| <section> |
| <title>Namespace and xbean.xml</title> |
| <para> |
| The namespace URI for the servicemix-bean JBI component is <code>http://servicemix.apache.org/saxon/1.0</code>. This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix <code>saxon</code>. |
| <programlisting><![CDATA[ |
| <beans xmlns:saxon="http://servicemix.apache.org/saxon /1.0"> |
| |
| <!-- add saxon:xslt, saxon:xquery or saxon:proxy definitions here --> |
| |
| </beans> |
| ]]></programlisting> |
| </para> |
| |
| </section> |
| |
| <section> |
| <title>Endpoint types</title> |
| <para> |
| The servicemix-saxon component only defines three endpoints: |
| <glosslist> |
| <glossentry> |
| <glossterm><code>saxon:xslt</code></glossterm> |
| <glossdef> |
| <para>Translates the in message content using XSLT to send back the translated content in the out message</para> |
| </glossdef> |
| </glossentry> |
| <glossentry> |
| <glossterm><code>saxon:proxy</code></glossterm> |
| <glossdef> |
| <para>Acts as a proxy for an endpoint, translating the message passed to/from the endpoint using XSLT</para> |
| </glossdef> |
| </glossentry> |
| <glossentry> |
| <glossterm><code>saxon:xquery</code></glossterm> |
| <glossdef> |
| <para>Use xquery to extract parts of the XML</para> |
| </glossdef> |
| </glossentry> |
| </glosslist> |
| </para> |
| </section> |
| |
| </section> |
| |
| <section> |
| <title>Endpoint <code>saxon:xslt</code></title> |
| |
| <xi:include href="snippet://${servicemix-saxon-source}/src/test/resources/spring.xml?id=xslt"/> |
| |
| </section> |
| |
| <section> |
| <title>Sample configurations</title> |
| <para> |
| This section will list a whole set of sample configurations. |
| </para> |
| |
| </section> |
| |
| |
| |
| </chapter> |