cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34025] - i18n transformer does not work when <i18n:text> tags are added via XSL
Date Tue, 15 Mar 2005 23:00:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34025>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34025





------- Additional Comments From h.vanderlinden@mi.unimaas.nl  2005-03-16 00:00 -------
(In reply to comment #0)

I haven't tested this but...


> bugtest2.xsl:
> <?xml version="1.0"?><xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
> xmlns:dir="http://apache.org/cocoon/directory/2.0" exclude-result-prefixes="dir">
> <xsl:output method='html' indent='yes'/>
> 
> <!-- Match the root element -->
> <xsl:template match="/">
> 
> <html>
> <xsl:copy-of select="//head"/>
> <body>
>         <xsl:apply-templates select="/html/body/div"/>
> </body>
> </html>
> </xsl:template>
> 
> <xsl:template match="node()|@*">
> </xsl:template>
> 
> <xsl:template match="/html/body/div">
> <div>
>         <i18n:text>
>         <xsl:value-of select="."/>
>         </i18n:text>
> </div>
> </xsl:template>
> </xsl:stylesheet>
> 
> Am I missing something? I can reproduce this in many places, but I've tried to
> boil it down to the simplest case I can. Thanks in advance for any advice!

XSL templates match in order of appearance in the file, so I assume your
catch-all template (node()|@*) matches before the correct (/html/body/div) one does.

Do report back here if that's the case.

Bye, Helma

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message