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/13 13:38:55 UTC
svn commit: r546828 - in /lenya/trunk/src/webapp/lenya/chaperon/stylesheets:
a-to-txt.xsl pattern-to-link.xsl
Author: andreas
Date: Wed Jun 13 04:38:55 2007
New Revision: 546828
URL: http://svn.apache.org/viewvc?view=rev&rev=546828
Log:
Use XHTML namespace for chaperon XML to trigger the ProxyTransformer correctly
Modified:
lenya/trunk/src/webapp/lenya/chaperon/stylesheets/a-to-txt.xsl
lenya/trunk/src/webapp/lenya/chaperon/stylesheets/pattern-to-link.xsl
Modified: lenya/trunk/src/webapp/lenya/chaperon/stylesheets/a-to-txt.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/chaperon/stylesheets/a-to-txt.xsl?view=diff&rev=546828&r1=546827&r2=546828
==============================================================================
--- lenya/trunk/src/webapp/lenya/chaperon/stylesheets/a-to-txt.xsl (original)
+++ lenya/trunk/src/webapp/lenya/chaperon/stylesheets/a-to-txt.xsl Wed Jun 13 04:38:55 2007
@@ -16,13 +16,17 @@
limitations under the License.
-->
<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="a">
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
+
+ <xsl:template match="xhtml:a">
<xsl:value-of select="@href"/>
</xsl:template>
+
<xsl:template match="@*|*|text()|processing-instruction()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
+
</xsl:stylesheet>
Modified: lenya/trunk/src/webapp/lenya/chaperon/stylesheets/pattern-to-link.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/chaperon/stylesheets/pattern-to-link.xsl?view=diff&rev=546828&r1=546827&r2=546828
==============================================================================
--- lenya/trunk/src/webapp/lenya/chaperon/stylesheets/pattern-to-link.xsl (original)
+++ lenya/trunk/src/webapp/lenya/chaperon/stylesheets/pattern-to-link.xsl Wed Jun 13 04:38:55 2007
@@ -17,12 +17,13 @@
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:lex="http://chaperon.sourceforge.net/schema/lexemes/2.0">
+ xmlns:lex="http://chaperon.sourceforge.net/schema/lexemes/2.0"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:template match="lex:lexeme[@symbol='link']">
<xsl:choose>
<!-- it is possible to disable link writing by prefixing by '\' -->
- <xsl:when test="not( starts-with( @text, '\') )"><a href="{@text}">
- <xsl:value-of select="@text"/></a>
+ <xsl:when test="not( starts-with( @text, '\') )"><xhtml:a href="{@text}">
+ <xsl:value-of select="@text"/></xhtml:a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="lex:group[2]"/>
@@ -32,15 +33,15 @@
<xsl:template match="lex:lexeme[@symbol='email']">
<xsl:choose>
<!-- it is possible to disable link writing by prefixing by '\' -->
- <xsl:when test="not( starts-with( @text, '\') )"><a href="mailto:{@text}">
- <xsl:value-of select="lex:group[2]"/> at <xsl:value-of select="lex:group[3]"/></a>
+ <xsl:when test="not( starts-with( @text, '\') )"><xhtml:a href="mailto:{@text}">
+ <xsl:value-of select="lex:group[2]"/> at <xsl:value-of select="lex:group[3]"/></xhtml:a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="lex:group[2]"/>@<xsl:value-of select="lex:group[3]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="lex:lexeme[@symbol='cssurl']"><xsl:value-of select="lex:group[2]"/><a href="{lex:group[3]}"/><xsl:value-of select="lex:group[4]"/>
+ <xsl:template match="lex:lexeme[@symbol='cssurl']"><xsl:value-of select="lex:group[2]"/><xhtml:a href="{lex:group[3]}"/><xsl:value-of select="lex:group[4]"/>
</xsl:template>
<xsl:template match="@*|*|text()|processing-instruction()" priority="-1">
<xsl:copy>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org