https://issues.apache.org/bugzilla/show_bug.cgi?id=43990





--- Comment #28 from Andreas Hartmann <[email protected]>  2009-07-15 13:53:11 
PST ---
I just did some prototyping: Include the source instead of the assembled page.
Seems to work fine if the source contains <img> as opposed to <object>
elements.



Index: sitemap.xmap
===================================================================
--- sitemap.xmap    (revision 794330 ( 
https://svn.apache.org/viewcvs.cgi?view=rev&rev=794330 ))
+++ sitemap.xmap    (working copy)
@@ -36,6 +36,13 @@
   <map:pipelines>

     <map:pipeline internal-only="yes">
+      
+      <map:match pattern="content.xml">
+        <map:generate src="lenya-document:"/>
+        <map:transform type="uuid2url"/>
+        <map:transform src="xslt/extractContent.xsl"/>
+        <map:serialize type="xml"/>
+      </map:match>

       <!-- when editing, the page should look exactly like the original, and
since
            we cannot know anything about the pipelines used for rendering, we
must
@@ -104,6 +111,7 @@
             <map:call resource="style-cms-page"/>
           </map:otherwise>
         </map:select>
+        <map:transform type="include"/>
         <map:transform type="i18n">      
           <map:parameter name="locale" value="{request:locale}"/>
         </map:transform>
Index: xslt/page2edit.xsl
===================================================================
--- xslt/page2edit.xsl    (revision 794330 ( 
https://svn.apache.org/viewcvs.cgi?view=rev&rev=794330 ))
+++ xslt/page2edit.xsl    (working copy)
@@ -3,6 +3,7 @@
   xmlns="http://www.w3.org/1999/xhtml";
   xmlns:xhtml="http://www.w3.org/1999/xhtml";
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
+  xmlns:i="http://apache.org/cocoon/include/1.0";
   exclude-result-prefixes="#default i18n"
 >

@@ -212,7 +213,10 @@
             <xsl:choose>
               <!-- firefox bug workaround: prevent <textarea/> from collapsing
if empty -->
               <xsl:when test=".//*">
+                <i:include src="cocoon:/content.xml"/>
+                <!--
                 <xsl:apply-templates/>
+                -->
               </xsl:when>
               <xsl:otherwise>
                 <xsl:text>&#160;</xsl:text>

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to