You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by cd...@apache.org on 2006/10/05 11:31:29 UTC
svn commit: r453159 -
/lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
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
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by Renaud Richardet <re...@wyona.com>.
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.
Oh, ok. I guess there is something like an svn:externals, but I can't
find it...
> 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...
Thorsten should be back tomorrow -- I think it's easier to ask him,
since he has the overview of both projects (Forrest and Lenya).
-- Renaud
>
> 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
>>>
>>>
>>>
>>
>
--
Renaud Richardet
COO America
Wyona - Open Source Content Management - Apache Lenya
office +1 857 776-3195 mobile +1 617 230 9112
renaud.richardet <at> wyona.com http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
le 13/10/2006 05:10 David Crossley a écrit :
> Cyriaque, sorry that that happened to you.
>
No problem,
> 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.
>
I think I am going to include what I previously did in the
odt-to-forrest.xsl - because, in fact, it is more the good place,
because it is a little forrest specific.
I am going to see if we can manage to keep a shared file with Lenya. (In
this case we have to discuss with the team to see if the improvments are
good for both project)
Salutations,
Cyriaque,
> -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
>>>>
>>>>
>>>>
>>>>
>
>
>
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by David Crossley <cr...@apache.org>.
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
> >>
> >>
> >>
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by David Crossley <cr...@apache.org>.
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
> >>
> >>
> >>
> >
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
David Crossley wrote:
>> 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...
it should be possible to define the variable in that stylesheet as well
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by Cyriaque Dupoirieux <Cy...@Free.fr>.
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
>>
>>
>>
>
Re: svn commit: r453159 - /lenya/trunk/src/modules/opendocument/xslt/common/odt_to_xhtml.xsl
Posted by Renaud Richardet <re...@wyona.com>.
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
?
--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
>
>
>
--
Renaud Richardet
COO America
Wyona - Open Source Content Management - Apache Lenya
office +1 857 776-3195 mobile +1 617 230 9112
renaud.richardet <at> wyona.com http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org