All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xslt.base.fo.inlines.xsl Maven / Gradle / Ivy









Handle xlink:href attributes on inlines


This template generates XHTML anchors for inline elements that
have xlink:href attributes.


Nested anchors can occur this way and this code does not, at
present, “unwrap” them as it should.





node

The node for which markup is being generated; the one that might
have the xlink:href attribute.


content

The content of the link. This defaults to the result of
calling “apply templates” with node as the
context item.






The result tree markup for the node.




  
  
    
  

  
    
      

        
          
            
            
            
              

              

              
                
                  
                    XLink to nonexistent id: 
                    
                  
                  ???
                
                
                  
                
              
            

            
            
              
            
          
        

        
          
        
      
      
        
      
    
  

  

  





Handles simple inline elements


This template generates simple inline markup for the context
node, assumed to be an element.
Specifically, it generates a span with a
class attribute. It also handles any
necessary id or
dir attributes.
If the element has an alt element among its
children, the string-value of that element will be used as the
title of the span.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.



  
    
      someVarName
    
    
      someVarName
    
  





  
    
  
  

  
    







    
      
        
          ltr
          rtl
        
      
    
    
  





Handles monospace inline elements


This template generates monospace inline markup for the context
node, assumed to be an element.
Specifically, it generates a tt with a
class attribute. It also handles any
necessary id or
dir attributes.
If the element has an alt element among its
children, the string-value of that element will be used as the
title of the tt.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
      
        
          ltr
          rtl
        
      
    
    
  





Handles bold inline elements


This template generates bold inline markup for the context
node, assumed to be an element.
Specifically, it generates a strong with a
class attribute. It also handles any
necessary id or
dir attributes.
If the element has an alt element among its
children, the string-value of that element will be used as the
title of the strong.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
      
        
          ltr
          rtl
        
      
    
    
  





Handles italic inline elements


This template generates italic inline markup for the context
node, assumed to be an element.
Specifically, it generates a em with a
class attribute. It also handles any
necessary id or
dir attributes.
If the element has an alt element among its
children, the string-value of that element will be used as the
title of the em.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
      
        
          ltr
          rtl
        
      
    
    
  





Handles bold, monospace inline elements


This template generates bold, monospace inline markup for the context
node, assumed to be an element.
Specifically, it generates a strong with a
class attribute and possibly an
id.

If the element has an
alt element among its children, the string-value of
that element will be used as the title of the strong.

Inside the strong, it generates a tt with
a dir attribute, if
appropriate.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
      
        
          ltr
          rtl
        
      
    
    
  





Handles italic, monospace inline elements


This template generates italic, monospace inline markup for the context
node, assumed to be an element.
Specifically, it generates a em with a
class attribute and possibly an
id.

If the element has an
alt element among its children, the string-value of
that element will be used as the title of the em.

Inside the em, it generates a tt with
a dir attribute, if
appropriate.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
      
        
          ltr
          rtl
        
      
    
    
  





Handles superscript inline elements


This template generates superscript inline markup for the context
node, assumed to be an element.
Specifically, it generates a sup with a
class attribute. It also handles any
necessary id or
dir attributes.

If the element has an alt element among its
children, the string-value of that element will be used as the
title of the sup.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
    
      
        
          ltr
          rtl
        
      
    
    
      
        super
      
      
        super
      
    
    
  





Handles subscript inline elements


This template generates subscript inline markup for the context
node, assumed to be an element.
Specifically, it generates a sub with a
class attribute. It also handles any
necessary id or
dir attributes.

If the element has an alt element among its
children, the string-value of that element will be used as the
title of the sub.




content

The content of the element. This defaults to the result of
calling “apply templates” with the current context node.






The result tree markup for the element.




  
    
  
  

  
    
    
      
        
          ltr
          rtl
        
      
    
    
      
        sub
      
      
        sub
      
    
    
  





Handles markup for the DocBook tag element


This template generates markup for the context
node, assumed to be a tag element.

Specifically, it generates a tt with a
class attribute. It also handles any
necessary id attribute.

Depending on the value of the class
attribute, additional generated text may be output as well.




class

The class attribute associated with the context element. If
the context element has no class attribute,
the default is “element”.






The result tree markup for the element.




  
    
      
        
      
      element
    
  

  
    
      
    
    
      
    
    
      
    
    
      
        
          </
          
          >
        
      
    
    
      
        
          &
          
          ;
        
      
    
    
      
        
          &#
          
          ;
        
      
    
    
      
        
          %
          
          ;
        
      
    
    
      
        
          <?
          
          >
        
      
    
    
      
        
          <?
          
          ?>
        
      
    
    
      
        
          <
          
          >
        
      
    
    
      
        
          <
          
          />
        
      
    
    
      
        
          <!--
          
          -->
        
      
    
    
      
    
  



  
    
      Something emphasized
    
    
      Something emphasized
    
  
  
    
      Something strongly emphasized
    
    
      Something strongly emphasized
    
  



  
    
      
        
          
            
            
          
        
        
          
            
            
          
        
      
    
  





  
    
    
      
    
    
  



  
    
    
      
    

    
  



  
    
    
  



  
    
      
      
        ©
        ®
        
          
            SM
          
        
        
      
    
  





Template for processing glossterm elements


The glossterm template is used to process glossterm
and firstterm elements.




  
    
  



  

  
    
    
      
        
          ltr
          rtl
        
      
    

    
      
        
      

      
        
          
            
              
            
            
              
            
          
        

        

        

        
          
            
              Error: no glossentry for glossterm: 
              
              .
            
            
          
          
            
            
          
        
      

      
        
      
    
  



  
    
    [Definition: 
    
    ]
  



  
    
      <
      
      >
    
  





  









© 2015 - 2024 Weber Informatics LLC | Privacy Policy