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

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/xslt simple2xhtml.xsl lenya-header.xsl

andreas     2003/11/04 02:10:01

  Modified:    src/webapp/lenya/pubs/default/xslt simple2xhtml.xsl
                        lenya-header.xsl
  Log:
  don't apply empty dc:* tags
  
  Revision  Changes    Path
  1.12      +1 -1      cocoon-lenya/src/webapp/lenya/pubs/default/xslt/simple2xhtml.xsl
  
  Index: simple2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/xslt/simple2xhtml.xsl,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- simple2xhtml.xsl	23 Oct 2003 14:04:50 -0000	1.11
  +++ simple2xhtml.xsl	4 Nov 2003 10:10:01 -0000	1.12
  @@ -22,7 +22,7 @@
           
   <xsl:template match="/">
     <div id="body">
  -    <h1 bxe_xpath="/simple:simple-document/lenya:meta/dc:title"><xsl:apply-templates select="simple:simple-document/lenya:meta/dc:title"/></h1>
  +    <xsl:apply-templates select="simple:simple-document/lenya:meta/dc:title"/>
       <xsl:apply-templates select="simple:simple-document/simple:body/simple:subtitle"/>
       <xsl:apply-templates select="simple:simple-document/lenya:header/lenya:abstract"/>
       <div bxe_xpath="/simple:simple-document/simple:body">
  
  
  
  1.5       +6 -3      cocoon-lenya/src/webapp/lenya/pubs/default/xslt/lenya-header.xsl
  
  Index: lenya-header.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/xslt/lenya-header.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- lenya-header.xsl	8 Aug 2003 13:20:46 -0000	1.4
  +++ lenya-header.xsl	4 Nov 2003 10:10:01 -0000	1.5
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="UTF-8" ?>
   
   <!-- $Id$ -->
  +<!-- RKUPATCH -->
   
   <xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  @@ -9,12 +10,14 @@
       exclude-result-prefixes="dc"
       >
   
  +<xsl:template match="dc:*[not(node())]"/>
  +
   <xsl:template match="dc:title">
  -  <h1><xsl:apply-templates/></h1>
  +  <h1 bxe_xpath="/simple:simple-document/lenya:meta/dc:title"><xsl:apply-templates/></h1>
   </xsl:template>
   
   <xsl:template match="dc:description">
     <p class="abstract"><xsl:apply-templates/></p>
   </xsl:template>
   
  -</xsl:stylesheet> 
  +</xsl:stylesheet> 
  \ No newline at end of file
  
  
  

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