forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sjur Moshagen <>
Subject ElemTemplateElement error: carry-body-attribs caused by r887050
Date Fri, 07 May 2010 11:59:51 GMT
Hello all,

I'm not able to build my site anymore, due to the following error:

X [0]                                     linkmap.html	BROKEN: ElemTemplateElement error:

I was finally able to track down the cause of the error being the commit r887050. I haven't
identified this earlier since I hadn't been updating my Forrest instance in a while, and then
didn't have time to track down the error earlier.

Tracking down ... that's kind of an overstatement, since the actual bug is not found. The
thing is, this bug does NOT display using a regular seed. I can only trigger this bug using
my own site. And this commit was a massive one, with 47 files being modified. But grepping
for carry-body-attribs, there are only two matches among the modified files:

a83-245-189-120:main sjur$ grep -r 'carry-body-attribs' * | grep -v '\.svn' | cut -d':' -f1
| sort -u
webapp/skins/common/xslt/html/document-to-html.xsl  <--- not modified
webapp/skins/common/xslt/html/site-to-xhtml.xsl     <--- not modified

and the only changes to these two files are:

a83-245-189-120:main sjur$ svn diff -c 887050 webapp/skins/pelt/xslt/html/document-to-html.xsl
Index: webapp/skins/pelt/xslt/html/document-to-html.xsl
--- webapp/skins/pelt/xslt/html/document-to-html.xsl	(revision 887049)
+++ webapp/skins/pelt/xslt/html/document-to-html.xsl	(revision 887050)
@@ -20,7 +20,7 @@
 imported document-to-html.xsl for details.
 <xsl:stylesheet version="1.0" xmlns:xsl="">
-  <xsl:import href="../../../common/xslt/html/document-to-html.xsl"/>
+  <xsl:import href="lm://"/>
   <xsl:template match="document">
       <xsl:apply-templates select="header/meta"/>

a83-245-189-120:main sjur$ svn diff -c 887050 webapp/skins/pelt/xslt/html/site-to-xhtml.xsl

Index: webapp/skins/pelt/xslt/html/site-to-xhtml.xsl
--- webapp/skins/pelt/xslt/html/site-to-xhtml.xsl	(revision 887049)
+++ webapp/skins/pelt/xslt/html/site-to-xhtml.xsl	(revision 887050)
@@ -35,7 +35,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl=""
   xmlns:i18n="" exclude-result-prefixes="i18n">
-  <xsl:import href="../../../common/xslt/html/site-to-xhtml.xsl"/>
+  <xsl:import href="lm://"/>
   |Overall site template

That is, using LM instead of relative paths. It seems pretty harmless, so this error puzzles
me. The only explanation I can think of is that by changing to using LM refs instead of path
refs, that the included file is somehow changed, ie the LM resolves differently than the previous
path reference, and the new file somehow cause the bug.

I also assume that the bug is related to

which introduced this attribute.

Any comments or insights would be very appreciated.


View raw message