cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r589383 - /cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
Date Sun, 28 Oct 2007 17:12:27 GMT
Author: reinhard
Date: Sun Oct 28 10:12:26 2007
New Revision: 589383

URL: http://svn.apache.org/viewvc?rev=589383&view=rev
Log:
fix document title

Modified:
    cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt

Modified: cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt?rev=589383&r1=589382&r2=589383&view=diff
==============================================================================
--- cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
(original)
+++ cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
Sun Oct 28 10:12:26 2007
@@ -35,18 +35,18 @@
   <xsl:param name="editUrl"/>
 
   <xsl:template match="/">
+    <xsl:variable name="doc"
+      select="/p:publisherResponse/p:document/p:preparedDocuments/p:preparedDocument[1]/p:publisherResponse/d:document"/>
     <document>
       <properties>
         <title>
-          <xsl:value-of select="@name"/>
+          <xsl:value-of select="$doc/@name"/>
         </title>
         <author>
           <xsl:value-of select="$author"/>
         </author>
       </properties>
       <body>
-        <xsl:variable name="doc"
-          select="/p:publisherResponse/p:document/p:preparedDocuments/p:preparedDocument[1]/p:publisherResponse/d:document"/>
         <xsl:apply-templates select="$doc"/>
       </body>
     </document>



Mime
View raw message