You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/06/25 13:56:08 UTC
svn commit: r550463 -
/lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl
Author: andreas
Date: Mon Jun 25 04:56:07 2007
New Revision: 550463
URL: http://svn.apache.org/viewvc?view=rev&rev=550463
Log:
Improved sitetree behaviour for proxying
Added:
lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl
Added: lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl?view=auto&rev=550463
==============================================================================
--- lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl (added)
+++ lenya/trunk/src/modules-core/usecase/xslt/proxyUrl2text.xsl Mon Jun 25 04:56:07 2007
@@ -0,0 +1,36 @@
+<?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.
+-->
+
+<!--
+Replace intermediate <proxy:url href=""/> elements with the plain URL.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns:proxy="http://apache.org/lenya/proxy/1.0">
+
+ <xsl:template match="proxy:url">
+ <xsl:value-of select="@href"/>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org