TEI Stylesheet family - linking.xsl

## The Text Encoding Initiative

# TEI Consortium XSLT stylesheets

Home | Guidelines | Projects | Tutorials | Software | History | FAQs | P5 | Consortium | Activities | SIGs | Join in/Contact | Members area
Stylesheet home page Summary Stylesheet List Template List

# linking.xsl

TEI stylesheet dealing with elements from the linking module, making HTML output.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author:
See AUTHORS
CVS Id:
linking.xsl 4801 2008-09-13 10:05:32Z rahtz
Copyright:
2008, TEI Consortium

## Match Templates Summary

* (mode: generateLink) - source
Process elements *
tei:TEI (mode: generateLink) - source
Process element TEI in generateLink mode
tei:label|tei:figure|tei:table|tei:item|tei:p|tei:bibl|tei:anchor|tei:cell|tei:lg|tei:list|tei:sp (mode: generateLink) - source
Process extra elements in generateLink mode
tei:note (mode: generateLink) - source
Process elements tei:note
* (mode: ident) - source
Process elements * to work out a unique identififying string
tei:anchor - source
Process elements tei:anchor

## Named Templates Summary

generateEndLink (param: where) - source
[html]
locateParent - source
[html]
locateParentdiv - source
[html]
makeExternalLink (param: ptr, dest, class) - source
[html] create external link
makeInternalLink (param: target, ptr, dest, body, class) - source
[html] create an internal link

## Match Templates Detail

* (mode: generateLink) - source
Process elements *
tei:TEI (mode: generateLink) - source
Process element TEI in generateLink mode

when a <div> is referenced, see whether its plain anchor, or needs a parent HTML name prepended

tei:label|tei:figure|tei:table|tei:item|tei:p|tei:bibl|tei:anchor|tei:cell|tei:lg|tei:list|tei:sp (mode: generateLink) - source
Process extra elements in generateLink mode
tei:note (mode: generateLink) - source
Process elements tei:note
* (mode: ident) - source
Process elements * to work out a unique identififying string
tei:anchor - source
Process elements tei:anchor

## Named Templates Detail

generateEndLink (param: where) - source
[html]
Parameters:
where - where
locateParent - source
[html]
locateParentdiv - source
[html]
makeExternalLink (param: ptr, dest, class) - source
[html] create external link
Parameters:
ptr - ptr
dest - dest
class - class
makeInternalLink (param: target, ptr, dest, body, class) - source
[html] create an internal link
Parameters:
target - target
ptr - ptr
dest - dest
body - body
class - class