You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

site.vsl 2.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- Content Stylesheet for Site -->
  3. ## Defined variables
  4. #set ($bodybg = "#ffffff")
  5. #set ($bodyfg = "#000000")
  6. #set ($bodylink = "#525D76")
  7. #set ($bannerbg = "#525D76")
  8. #set ($bannerfg = "#ffffff")
  9. #set ($subbannerbg = "#828DA6")
  10. #set ($subbannerfg = "#ffffff")
  11. #set ($tablethbg = "#039acc")
  12. #set ($tabletdbg = "#a0ddf0")
  13. <!-- start the processing -->
  14. #document()
  15. <!-- end the processing -->
  16. ## This is where the common page macro's live
  17. #macro ( subsection $subsection)
  18. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  19. <tr><td bgcolor="$subbannerbg">
  20. <font color="$subbannerfg" face="arial,helvetica,sanserif">
  21. <a name="$escape.getText($subsection.getAttributeValue("name"))"><strong>$subsection.getAttributeValue("name")</strong></a>
  22. </font>
  23. </td></tr>
  24. <tr><td>
  25. <blockquote>
  26. #foreach ( $items in $subsection.getChildren() )
  27. #if ($items.getName().equals("img"))
  28. #image ($items)
  29. #elseif ($items.getName().equals("source"))
  30. #source ($items)
  31. #elseif ($items.getName().equals("table"))
  32. #table ($items)
  33. #else
  34. $xmlout.outputString($items)
  35. #end
  36. #end
  37. </blockquote>
  38. </td></tr>
  39. </table>
  40. #end
  41. #macro ( section $section)
  42. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  43. <tr><td bgcolor="$bannerbg">
  44. <font color="$bannerfg" face="arial,helvetica,sanserif">
  45. <a name="$escape.getText($section.getAttributeValue("name"))"><strong>$section.getAttributeValue("name")</strong></a>
  46. </font>
  47. </td></tr>
  48. <tr><td>
  49. <blockquote>
  50. #foreach ( $items in $section.getChildren() )
  51. #if ($items.getName().equals("img"))
  52. #image ($items)
  53. #elseif ($items.getName().equals("source"))
  54. #source ($items)
  55. #elseif ($items.getName().equals("table"))
  56. #table ($items)
  57. #elseif ($items.getName().equals("subsection"))
  58. #subsection ($items)
  59. #else
  60. $xmlout.outputString($items)
  61. #end
  62. #end
  63. </blockquote>
  64. </td></tr>
  65. </table>
  66. #end
  67. #macro (document)
  68. #header()
  69. #set ($allSections = $root.getChild("body").getChildren("section"))
  70. #foreach ( $section in $allSections )
  71. #section ($section)
  72. #end
  73. #footer()
  74. #end