blob: 8571f7629e2c85a2db5d1ff7da4f2100e61683e6 [file] [log] [blame]
<?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.
-->
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>A supporting tab library for Apache Sling</description>
<tlib-version>1.0</tlib-version>
<short-name>sling</short-name>
<uri>http://sling.apache.org/taglibs/sling/1.0</uri>
<tag>
<description>
Includes a resource rendering into the current page
</description>
<name>include</name>
<tag-class>
org.apache.sling.scripting.jsp.taglib.IncludeTagHandler
</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Whether to flush the output before including the target
</description>
<name>flush</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
The resource object to include in the current request
processing. Either resource or path must be specified. If
both are specified, the resource takes precedences.
</description>
<name>resource</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>org.apache.sling.api.resource.Resource</type>
</attribute>
<attribute>
<description>
The path to the resource object to include in the current
request processing. If this path is relative it is
appended to the path of the current resource whose
script is including the given resource. Either resource
or path must be specified. If both are specified, the
resource takes precedences.
</description>
<name>path</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
The resource type of a resource to include. If the resource
to be included is specified with the path attribute,
which cannot be resolved to a resource, the tag may
create a synthetic resource object out of the path and
this resource type. If the resource type is set the path
must be the exact path to a resource object. That is,
adding parameters, selectors and extensions to the path
is not supported if the resource type is set.
</description>
<name>resourceType</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, replace selectors by the value
provided by this option.
</description>
<name>replaceSelectors</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, add the value provided by this option to the selectors.
</description>
<name>addSelectors</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, replace the suffix by the value
provided by this option.
</description>
<name>replaceSuffix</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Forwards a request to a resource rendering the current page
</description>
<name>forward</name>
<tag-class>
org.apache.sling.scripting.jsp.taglib.ForwardTagHandler
</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
The resource object to forward the request to. Either
resource or path must be specified. If both are
specified, the resource takes precedences.
</description>
<name>resource</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>org.apache.sling.api.resource.Resource</type>
</attribute>
<attribute>
<description>
The path to the resource object to forward the request
to. If this path is relative it is appended to the path
of the current resource whose script is forwarding the
given resource. Either resource or path must be specified.
If both are specified, the resource takes precedences.
</description>
<name>path</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
The resource type of a resource to forward. If the resource
to be forwarded is specified with the path attribute,
which cannot be resolved to a resource, the tag may
create a synthetic resource object out of the path and
this resource type. If the resource type is set the path
must be the exact path to a resource object. That is,
adding parameters, selectors and extensions to the path
is not supported if the resource type is set.
</description>
<name>resourceType</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, replace selectors by the value
provided by this option.
</description>
<name>replaceSelectors</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, add the value provided by this option to the selectors.
</description>
<name>addSelectors</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
When dispatching, replace the suffix by the value
provided by this option.
</description>
<name>replaceSuffix</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Defines regularly used scripting variables
</description>
<name>defineObjects</name>
<tag-class>
org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
</tag-class>
<tei-class>
org.apache.sling.scripting.jsp.taglib.DefineObjectsTEI
</tei-class>
<body-content>empty</body-content>
<attribute>
<name>requestName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>responseName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>resourceName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>nodeName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>logName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>resourceResolverName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>slingName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>