A template rule has three parts:
the opening tag describes which part(s) of your XML document the template should be applied to,
the middle bit describes what should happen once a match is found,
and the closing tag completes the template.
File: Data.xml
while
continue
def
elif
except
from
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon">
Python 2.3 Keywords
saxon:indent-spaces="1">
Python 2.3 Keywords
mode="html">
test="not((position() mod 5)=0) and not(position()=last())">
Output:
Python 2.3 Keywords
continue def elif except from
while