forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Date Fri, 13 Oct 2006 03:10:08 GMT
Cyriaque, sorry that that happened to you.

I wonder if using svn:external is warranted.
This is the only place that we use it in Forrest SVN.

Perhaps it would be better to have an 'svn copy' and
deliberately merge from time-to-time as needed.

-David

Cyriaque Dupoirieux wrote:
> le 09/10/2006 23:24 Renaud Richardet a ??crit :
> >Hello,
> Hello,
> >
> >I get the following error when opening the odt sample page on zones 
> >(http://lenya.zones.apache.org:9999/default/authoring/doctypes/opendocument.html):

> >
> >
> >Could not find variable with the name of dirname
> >
> >org.apache.cocoon.ProcessingException: Failed to process pipeline at 
> >[TransformerException] - 
> >file:/export/home/lenya/src/lenya-trunk/build/lenya/webapp/lenya/modules/opendocument/xslt/common/odt_to_xhtml.xsl:476:109

> >at <map:serialize type="xml"> - 
> >file:/export/home/lenya/src/lenya-trunk/build/lenya/webapp/lenya/modules/opendocument/sitemap.xmap:62:36

> >at <map:transform> - 
> >file:/export/home/lenya/src/lenya-trunk/build/lenya/webapp/lenya/modules/opendocument/sitemap.xmap:57:96

> >at <map:generate> - file:/exp
> >
> >Is the issue somehow similar to 
> >http://mail-archives.apache.org/mod_mbox/forrest-dev/200606.mbox/%3C100A26D4-46A3-42AA-B7E5-8C6AAD039451@gmail.com%3E

> >?
> I didn't know I was working on a Lenya file.
> The variable is defined in the parent stylesheet which is a forrest file.
> I am going to rollback because I am so surprised that I don't know at 
> the moment what to do...
> 
> Sorry,
> 
> Salutations,
> Cyriaque,
> 
> >
> >--Renaud
> >
> >cdupoirieux@apache.org wrote:
> >>Author: cdupoirieux
> >>Date: Thu Oct  5 02:31:28 2006
> >>New Revision: 453159
> >>
> >>URL: http://svn.apache.org/viewvc?view=rev&rev=453159
> >>Log:
> >>Images management.
> >>(inspired by the OOo plugin.)
> >>
> >>Modified:
> >>    lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
> >>
> >>Modified: 
> >>lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
> >>URL: 
> >>http://svn.apache.org/viewvc/lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl?view=diff&rev=453159&r1=453158&r2=453159

> >>
> >>==============================================================================

> >>
> >>--- lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl 
> >>(original)
> >>+++ lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl 
> >>Thu Oct  5 02:31:28 2006
> >>@@ -463,6 +463,21 @@
> >>     <li><xsl:apply-templates/></li>
> >> </xsl:template>
> >> 
> >>+  <!--+
> >>+      | Images
> >>+      +-->
> >>+<xsl:template match="draw:image[@xlink:show]">
> >>+    <xsl:variable name="href"><xsl:value-of 
> >>select="@xlink:href"/></xsl:variable>
> >>+    <xsl:choose>
> >>+        <xsl:when test="starts-with($href, 'http:')">
> >>+            <img src="{$href}" alt="{@draw:name}"/>
> >>+        </xsl:when>
> >>+        <xsl:otherwise>
> >>+            <img 
> >>src="/{$dirname}openDocumentEmbeddedImages/zip-{$filename}.odt/file-{$href}"

> >>alt="{../@draw:name}"/>
> >>+        </xsl:otherwise>
> >>+    </xsl:choose>
> >>+</xsl:template>
> >>+
> >> <xsl:template match="table:table">
> >>     <table class="{@table:style-name}">
> >>         <colgroup>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
> >>For additional commands, e-mail: commits-help@lenya.apache.org
> >>
> >>
> >>  
> >

Mime
View raw message