blob: f9cb1a38b06e0038f594ef2465c8a7b14205ebb6 [file] [log] [blame]
<?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.
-->
<!--
Run this stylesheet over build/lenya/webapp/WEB-INF/cocoon.xconf to
get a default permissions file with all usecases allowed for the "admin" role.
Example for Xalan on Linux:
Xalan -i 2 $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf \
$LENYA_HOME/src/modules-core/usecase-impl/xslt/initUsecasePolicies.xsl \
> $YOUR_PUB/config/ac/usecase-policies.xml
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://apache.org/cocoon/lenya/ac/1.0">
<xsl:template match="cocoon">
<xsl:apply-templates select="usecases"/>
</xsl:template>
<xsl:template match="usecases">
<xsl:text>
</xsl:text>
<xsl:comment>+++NOTE+++ The usecase list was initialized using modules/usecase-impl/xslt/initUsecasePolicies.xsl.</xsl:comment>
<xsl:text>
</xsl:text>
<usecases>
<xsl:apply-templates select="component-instance"/>
</usecases>
</xsl:template>
<xsl:template match="usecases/component-instance">
<usecase id="{@name}"><role id="admin" method="grant"/></usecase>
</xsl:template>
</xsl:stylesheet>