You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/10/02 14:37:37 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/publishing publish-screen.xsl

egli        2003/10/02 05:37:37

  Modified:    src/webapp/lenya/xslt/publishing publish-screen.xsl
  Log:
  Display a warning if there are references to documents which have not
  been published yet.
  
  Revision  Changes    Path
  1.7       +14 -0     cocoon-lenya/src/webapp/lenya/xslt/publishing/publish-screen.xsl
  
  Index: publish-screen.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/publishing/publish-screen.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- publish-screen.xsl	19 Sep 2003 12:18:55 -0000	1.6
  +++ publish-screen.xsl	2 Oct 2003 12:37:37 -0000	1.7
  @@ -116,6 +116,9 @@
                     </td>
                   </tr>
                   <tr>
  +	          <xsl:apply-templates select="referenced-documents"/>
  +                </tr>
  +                <tr>
                     <td/>
                     <td>
                       <input type="submit" name="lenya.usecase" value="publish"/>
  @@ -142,5 +145,16 @@
       </page:page>
     </xsl:template>
   
  +  <xsl:template match="referenced-documents">
  +    <td class="lenya-entry-caption" valign="top">
  +      <span class="lenya-form-message-error">This document has links to the <br/>following unpublished documents:</span>
  +    </td>
  +    <td valign="top">
  +      <xsl:for-each select="referenced-document">
  +	<a target="_blank" href="{@href}"><xsl:value-of select="@id"/><xsl:value-of select="."/></a><br/>
  +      </xsl:for-each>
  +    </td>
  +  </xsl:template>
  +  
   
   </xsl:stylesheet>  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org