Posted By

qrist0ph on 07/05/08


Tagged

web cheatSheet


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SpinZ


Web Sprachen CheatSheet


 / Published in: HTML
 

  1. XML
  2.  
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
  5.  
  6. DTD
  7.  
  8. <?xml version="1.0" standalone="no"?>
  9. <!DOCTYPE hallo SYSTEM "hallo.dtd">
  10. <hallo>Hallo Welt!</hallo>
  11.  
  12. <?xml version="1.0" encoding="UTF-8"?>
  13. <!DOCTYPE example [
  14. <!ENTITY copy "&#xA9;">
  15. <!ENTITY copyright-notice "Copyright &copy; 2006, XYZ Enterprises">
  16. ]>
  17. <example>
  18. &copyright-notice;
  19. </example>
  20.  
  21. XSLT
  22. <?xml version="1.0" ?>
  23. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  24. <xsl:output method="xml" indent="yes"/>
  25.  
  26. <?xml version="1.0"?>
  27. <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
  28. <hello-world> <greeter>An XSLT Programmer</greeter> <greeting>Hello, World!</greeting></hello-world>
  29.  
  30. GWT
  31. <module>
  32. <!-- Inherit the core Web Toolkit stuff. -->
  33. <inherits name='com.google.gwt.user.User'/>
  34. <inherits name='com.qrist0ph.gwtWidgets.WidgetLibrary'/>
  35. <!-- Specify the app entry point class. -->
  36. <entry-point class='org.qrist0ph.client.HelloWorld'/>
  37. <stylesheet src="HelloWorld.css" />
  38. </module>
  39.  
  40. public class VerticalTabPanel extends Composite implements HistoryListener{
  41. initWidget(panel);
  42.  
  43. HTML
  44.  
  45. <style type="text/css">
  46. body {background-color: white}
  47. table.sample td { border-width: 1px 1px 1px 1px; }
  48. </style>
  49. <link rel="stylesheet" type="text/css" href="style.css" />
  50. <script type="text/javascript" src="ticker.js" />
  51. <script type="text/javascript">
  52. function myfunction()
  53. {
  54. document.getElementById("mydiv").innerHTML = "Button clicked"
  55. }
  56. </head>

Report this snippet  

You need to login to post a comment.