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

xslt.base.html.html.xsl Maven / Gradle / Ivy







  







Returns an XHTML anchor if appropriate


This template returns an XHTML anchor
(a) if the specified
node has an id
(or xml:id) attribute or if the
force parameter is non-zero.

If an anchor is generated, it's id
value is f:node-id().





node

The node for which an anchor should be generated. It defaults to
the context item.


force

To force an anchor to be generated, even if the node does
not have an ID, make this parameter non-zero. It defaults to 0.






An XHTML anchor or nothing.



  
    
      
    
    
      
    
  





  
  

  
    
  





Returns an “class” attribute if appropriate


This template returns an attribute named “class” if the specified
node has an role attribute or if the
force parameter is non-zero.




node

The node for which an class attribute should be generated. It defaults to
the context item.


force

To force a “class” attribute to be generated, even if the node does
not have a role,
make this parameter non-zero. It defaults to 0.


default-role

The default role that will be used if the attribute is forced
and the node has no role.






An “class” attribute or nothing.




  
  
  

  

  
    
  





Returns a “style” attribute if appropriate


This template returns an attribute named “style” if the
global parameter inline.style.attribute is non-zero
and a CSS style is specified.




css

The CSS style to apply.






A “style” attribute or nothing.




  

  
    
      
    
  





  
  



  



  

  



  

  



  

  

  
  

  



  

  

  

  
  

  

  
  

  





  
    
  

  

  
    
      
    
    
      
    
  

  
    
  



  





Mode for generating the head element


This mode is called on an element when it is the root of an
HTML document. It is responsible for generating the HTML head element
and its content.




  
    <xsl:value-of select="f:title(.)"/>
  

  
    
  

  
  

  
  

  
    
      
        
          
            
          
          
            
          
        
      
    
  

  
  





Mode for inserting metadata in the head


This mode is called on an element when it is the root of an
HTML document. It is responsible for generating any necessary
meta elements into the head.





  
    
  

  
    
      
        
          
          
             
          
        
      
    
  

  





Mode for inserting links in the head


This mode is called on an element when it is the root of an
HTML document. It is responsible for generating any necessary
link elements in the head.





  
  

  
    
  





Template for inserting attributes on the HTML body


T.B.D.




  





Returns a URI for the node


This function returns a URI suitable for use in a hypertext link
for the specified node.




context

The context in which the link will be used. (This is necessary
when chunking.)


node

The node for which a URI will be generated.






The hypertext anchor URI for the node.



  
    
    
      
    
    '#foo'
  
  
    
      
        Some Title
        
          Some Chapter Title
          My para.
        
      
    
    
    
    '#R.1.2'
  





  
  
  





Returns a URI for the node


This function returns a URI suitable for use in a hypertext link
for the specified node.

The difference between href-target-uri and
href is only apparent when chunking is used.






node

The node for which a URI will be generated.






The hypertext anchor URI for the node.



  
    
      
    
    '#foo'
  
  
    
      
        Some Title
        
          Some Chapter Title
          My para.
        
      
    
    
    '#R.1.2'
  





  
  





  

  



  
Mode for stripping anchors from XHTML This mode performs an identity transform except that all XHTML anchors (a) elements are removed. The content of each anchor is preserved, only the wrapping a is stripped away. Mode for generating keyword metadata in the head This mode is called on an element when it is the root of an HTML document. It is responsible for generating the keyword-related meta elements in the head.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy