Statistics
| Revision:

## root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / xhtml2 / core.xsl @ 187

 1         

TEI stylesheet dealing with elements from the core module, making   HTML output.

 

This software is dual-licensed:  1. Distributed under a Creative Commons Attribution-ShareAlike 3.0  Unported License http://creativecommons.org/licenses/by-sa/3.0/  2. http://www.opensource.org/licenses/BSD-2-Clause    All rights reserved.  Redistribution and use in source and binary forms, with or without  modification, are permitted provided that the following conditions are  met:  * Redistributions of source code must retain the above copyright  notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright  notice, this list of conditions and the following disclaimer in the  documentation and/or other materials provided with the distribution.  This software is provided by the copyright holders and contributors  "as is" and any express or implied warranties, including, but not  limited to, the implied warranties of merchantability and fitness for  a particular purpose are disclaimed. In no event shall the copyright  holder or contributors be liable for any direct, indirect, incidental,  special, exemplary, or consequential damages (including, but not  limited to, procurement of substitute goods or services; loss of use,  data, or profits; or business interruption) however caused and on any  theory of liability, whether in contract, strict liability, or tort  (including negligence or otherwise) arising in any way out of the use  of this software, even if advised of the possibility of such damage.  

 

Author: See AUTHORS

 

Id: $Id: core.xsl 10058 2012-01-22 12:51:37Z rahtz$

 

 
 
     

Process elements tei:*

 

 

anything with a head can go in the TOC

 

  forcedepth  
 
                                                  99            
•     toc   headless         false   plain          
•  
 
    Process element ab              
 
 
   
    spProse      
 
   
     
 
 
 
    Process element addrLine        
 
    Process element address      
     
 
    Process element argument      
   
 
    Process element author                   Process element bibl                    
   
 
   
   
 
        bibl     bibl-              
 
    Process element change      
       
             
 
   
 
 
   
 
            Process element choice             (     )                 Process element choice in plain mode - selects "critical" reading.                   Process element choice        

Process element cit

 

 

quoting

 

 
 
       
      (     )        
 
   
        (     )                    

   

 
 
 
 
   
      (     )      
 
          (     )          
 
    Process element code                     Does not do anything yet.               Decorate date                   The del element                 Process element eg      
      pre_eg     cdata          
 
    Process element emph                                         Process element epigraph      
     
 
    Process element epigraph/lg             Process element foreign and unclear                   Process element caesura                  Process element gap         gap                       [...]              

Process element att

 

 

special purpose

 

 
 
      @           Process gloss element                  

 

 
 
         

   

 
   
     
 
       
 
    Process element head in plain mode                   Process element head in heading mode        
 
      false        
    Process element hi                                                                       Process element item      

     

 
    Process element item                   Process element item      
     
 
   
 
    Process element item      
•                                      
•  
    Process element item       ,     and           Process element item/tei:label                                           Process element label                   Process element label                                             Process element lb in plain mode             Process element lb                         -  
 
               
 
   
 
 
 
    Process element l           l              
               
   
       
 
 
    Process element lg                  
              continued       false              
 
   
         
 
 
 
 
   
     
 
 
 
    Process element lg/tei:l      
            right       center       indent         indent1                                    
 
     

Process element list

 

 

Lists. Depending on the value of the 'type' attribute, various HTML   lists are generated:

bibl
Items are processed in mode 'bibl'
catalogue
A gloss list is created, inside a paragraph
gloss
A gloss list is created, expecting alternate label and item   elements
glosstable
Label and item pairs are laid out in a two-column table
inline
A comma-separate inline list
runin
An inline list with bullets between items
unordered
A simple unordered list
ordered
A simple ordered list
valList
(Identical to glosstable)
 

 

 
 
        listhead            

 

         

     

 

 
         

         

         

     
         
 
                           

   

 
   
         
 
         
                   
 
   
         
 
        Process element list/tei:label         Process element listBibl          
   

                  Web.       .         Print.     .       .    

 
 
 
   
       
1.      
2.  
 
 
   
   
1.              
2.  
 
 
 
 
    Process element mentioned                   Process element name in mode "plain"                                 Process element note                   [     ]                                                   ,                         ,                           [     ]      
               
 
   
                      Note     :          
 
   
                         

   

 
 
 
 
                   
         
 
                            [     ]        
          note                     Note     :          
 
 
 
    Check whether a note should be processed if we are at the top                             Check whether a note should be processed. If we are   splitting, check that we are in the correct file                                         Process element note               Make note    
              .        
   
         
 
    Process element note[@type='action']      
Action   :
 
     

Process element pb

 

Indication of a page break. For the purposes of HTML, we simply   make it an anchor if it has an ID.

 
 
              page                                                                      
   
 
   
    [     page             ]  
 
        [     page             ]      
 
    Process element p           p   div   span   span   div   div   span   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div   div     p                                   continued       false                                                   p                           How to number paragraphs                 Process element p[@rend='box']      

   

 
    Process element q and tei:said                
   
 
       
 
                           
   
 
             
   
 
   

   

 
                                       
 
    Process element q[@rend='display']      
                   

   

 
 
 
 
    Process element q[@rend='eg']      
    eg      
 
    Process element quote          
   
 
                 
                   

   

 
 
 
 
           
 
    Process element resp               Process element respStmt             Process element salute                
   
 
 
 
    Process element seg, pass through @type and @rend as @class                                           put (sic) after text           (sic)       Process element signed      
   
 
    Process element space                 em           em                           Process element term                                           Process element title in "withbr" mode        
 
    Process element title when it is a child of body      
   
 
    Process element witList             Process element witness      

  Sigle:    
   
   
See:
 

 
    [html] Activate a value for @renditionvalue                               [html] Look up rendition value value                                     [html] Active a value for @rendvalue                                       [html] sections in mode for table of contents        
   
 
 
    [html] How to identify a note                 Note             [html] How to label a note                                                                                                                                     [html] Show relevant footnotes currentID                                                   notes                 [html]                                     Opening file           THIS FILE IS GENERATED FROM AN XML MASTER. DO NOT EDIT (11)         <xsl:apply-templates select="descendant-or-self::tei:text/tei:front//tei:docTitle//text()"/>   <xsl:text>: </xsl:text>   <xsl:call-template name="i18n">   <xsl:with-param name="word">noteHeading</xsl:with-param>   </xsl:call-template>                  
        :     noteHeading        
 
 
    noteHeading    
                 
         
    Closing file      
                                                         
 
    noteHeading    
   
 
 
 
 
 
   
 
    noteHeading    
   
 
 
     

[html]

 

 

rendering. support for multiple rendition elements added by Nick   Nicholas

 

 
 
              [html] the current segment of the value of the rend   attribute   the remainder of the attribute                                                                                                                                                                                                  ´                                                                                                                                                                                   [html] Process unknown rend attribute by turning it into   an HTML classcurrent value   remaining values                                 [html] Process unknown rend attribute by turning it into   an HTML classvalue   rest                               [html] Create a point to which we can link in the HTMLvalue for identifier                 anchor           anchor           index           index                     --             Process element soCalled                                           Copy all attributes in HTML namespace                         [html] convert rend attribute to HTML class       true   .                                                                           transcribable                                                                                                     [html] allow for local extensions to rendToClass         [html] standard case of TEI element which produces a span                                             [html] processing analytic element as needed for MLA style (from Laura Mandell>                             .                         ,     , and       ,     , and       and         and                         .           [html] processing monogr element as needed for MLA style (from Laura Mandell>                                                                                                               .     :   [n.p.]:       ,   [n.p.],       .   [n.d.]           .   ()   :   .             [html] processing relatedItem element as needed for MLA style (from Laura Mandell>         Rpt.           `