to-latex.xslt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version='1.0'>
  4. <xsl:output method="text"/>
  5. <xsl:strip-space elements="*"/>
  6. <xsl:template match="/">
  7. \documentclass[a4paper,11pt]{article}
  8. \setlength{\oddsidemargin}{0cm}
  9. \setlength{\evensidemargin}{0cm}
  10. \setlength{\topmargin}{0cm}
  11. \setlength{\headheight}{0cm}
  12. \setlength{\headsep}{0cm}
  13. \usepackage{url}
  14. \usepackage{supertabular}
  15. \usepackage{palatino}
  16. \title{Gitoyen peers}
  17. \author{Stephane Bortzmeyer, \url{bortzmeyer@gitoyen.net}}
  18. \begin{document}
  19. \sloppy
  20. \maketitle
  21. \center{\textbf{Generated by the XSL tool <xsl:value-of
  22. select="system-property('xsl:vendor')"/> (\url{<xsl:value-of
  23. select="system-property('xsl:vendor-url')"/>})}}
  24. \begin{supertabular}{|p{4.5cm}|l|c|p{5.25cm}|c|}
  25. \hline
  26. \textbf{Name}&amp;\textbf{IXP}&amp;\textbf{AS}&amp;\textbf{Contact}&amp;\textbf{IP address}\\
  27. \hline\hline
  28. <xsl:apply-templates/>
  29. \end{supertabular}
  30. \end{document}
  31. </xsl:template>
  32. <xsl:template match="/peers/peer">
  33. <xsl:value-of select="name"/>
  34. &amp;
  35. <xsl:value-of select="@ix"/>
  36. &amp;
  37. <xsl:value-of select="as"/>
  38. &amp;
  39. \url{<xsl:value-of select="contact"/>}
  40. &amp;
  41. <xsl:value-of select="ip"/>
  42. \\
  43. \hline
  44. </xsl:template>
  45. </xsl:stylesheet>