dims 00/12/04 04:07:00
Modified: src/org/apache/cocoon/components/language/markup/sitemap/java
Tag: xml-cocoon2 sitemap.xsl
Added: src/org/apache/cocoon/selection Tag: xml-cocoon2
CodedSelectorFactory.java
src/org/apache/cocoon/selection/helpers Tag: xml-cocoon2
CodedSelectorHelper.java
Log:
Patches from Marcus Crafter<[EMAIL PROTECTED]> - "[C2/Patch] Selector Heaven
:-)"
Revision Changes Path
No revision
No revision
1.1.2.65 +5 -13
xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl
Index: sitemap.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
retrieving revision 1.1.2.64
retrieving revision 1.1.2.65
diff -u -r1.1.2.64 -r1.1.2.65
--- sitemap.xsl 2000/12/02 11:54:17 1.1.2.64
+++ sitemap.xsl 2000/12/04 12:06:58 1.1.2.65
@@ -77,7 +77,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo
Pati</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Berin
Loiritsch</a>
- * @version CVS $Revision: 1.1.2.64 $ $Date: 2000/12/02 11:54:17 $
+ * @version CVS $Revision: 1.1.2.65 $ $Date: 2000/12/04 12:06:58 $
*/
public class <xsl:value-of select="@file-name"/> extends AbstractSitemap
{
static final String LOCATION = "<xsl:value-of
select="translate(@file-path, '/', '.')"/>.<xsl:value-of select="@file-name"/>";
@@ -104,7 +104,6 @@
<xsl:variable name="matcher-name">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">matcher_</xsl:with-param>
- <xsl:with-param name="value" select="@pattern"/>
<xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
@@ -127,7 +126,6 @@
<xsl:variable name="matcher-name">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">matcher_</xsl:with-param>
- <xsl:with-param name="value" select="@pattern"/>
<xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
@@ -150,8 +148,7 @@
<xsl:variable name="selector-name">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">selector_</xsl:with-param>
- <xsl:with-param name="value" select="@test"/>
- <xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(..)"/></xsl:with-param>
+ <xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="this-test">
@@ -178,8 +175,7 @@
<xsl:variable name="selector-name">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">selector_</xsl:with-param>
- <xsl:with-param name="value" select="@test"/>
- <xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(..)"/></xsl:with-param>
+ <xsl:with-param name="suffix"><xsl:value-of
select="$type"/>_<xsl:value-of select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="this-test">
@@ -386,7 +382,6 @@
<xsl:variable name="matcher-name2">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">matcher_</xsl:with-param>
- <xsl:with-param name="value" select="@pattern"/>
<xsl:with-param name="suffix"><xsl:value-of
select="$matcher-type"/>_<xsl:value-of
select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
@@ -460,8 +455,7 @@
<xsl:variable name="selector-name2">
<xsl:call-template name="generate-name">
<xsl:with-param name="prefix">selector_</xsl:with-param>
- <xsl:with-param name="value" select="@test"/>
- <xsl:with-param name="suffix"><xsl:value-of
select="$selector-type"/>_<xsl:value-of
select="generate-id(..)"/></xsl:with-param>
+ <xsl:with-param name="suffix"><xsl:value-of
select="$selector-type"/>_<xsl:value-of
select="generate-id(.)"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
@@ -917,11 +911,9 @@
<!-- replace invalid characters with underscores -->
<xsl:template name="generate-name">
- <xsl:param name="value"/>
<xsl:param name="prefix"/>
<xsl:param name="suffix"/>
- <xsl:variable name="value1" select="translate($value,'/-
*?@:{}()[].#^\\$|!~\','______________________')"/>
- <xsl:value-of select="$prefix"/><xsl:value-of
select='translate($value1,"'","")'/><xsl:value-of select="$suffix"/>
+ <xsl:value-of select="$prefix"/><xsl:value-of select="$suffix"/>
</xsl:template>
<!-- These are the usual utility templates for logicsheets -->
No revision
No revision
1.1.2.1 +66 -0
xml-cocoon/src/org/apache/cocoon/selection/Attic/CodedSelectorFactory.java
No revision
No revision
1.1.2.1 +50 -0
xml-cocoon/src/org/apache/cocoon/selection/helpers/Attic/CodedSelectorHelper.java