XML Schemas, XSLT, Start AJAX




CS174

Chris Pollett

Nov 14, 2016

Outline

Namespaces

XML Schemas

More on Schemas

Overview of data types

Simple Types

Complex Types

References

Indicating the Schema Used By an XML document

Quiz

Which of the following statements is true?

  1. In Javascript, the regular expression \D matches a single digit.
  2. The capture phase of event processing starts at the root of the document and proceeds down the DOM tree to the smallest node on which the event happened.
  3. setInterval(callback, time_in_ms) is used to schedule a one-time only callback to be called time_in_ms in the future.

Quiz

Which of the following statements is true?

  1. setTimeout(callback, time_in_ms) is used to schedule a repeating callback called every time_in_ms milliseconds.
  2. The capture phase of event processing starts at the root of the document and proceeds down the DOM tree to the smallest node on which the event happened.
  3. In Javascript regular expressions, \d matches a single digit.

XML and CSS

XSLT

XSLT Example -- Initial XML Document

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="xslplane.xsl" ?>
<plane>
    <year>1970</year>
</plane>

XSLT Example -- The Transformation

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
    xmlns:xsl= "http://www.w3.org/1999/XSL/Transform"
   xmlns = "http://www.w3.org/1999/xhtml"
>
<xsl:template match="plane">
<html><head>
<title>result of applying a stylesheet to plane</title>
</head><body><h1>Plane Description</h1>
     <xsl:apply-templates />
     </body></html>
 </xsl:template>
<xsl:template match="year">
    <p style="color:red">
    <xsl:value-of select="." />
    </p>
</xsl:template>
</xsl:stylesheet>

POSH -- Plain Old Semantic HTML

Beginning AJAX

Step-by-Step

Step-by-Step Continued I

Step-by-Step Continued II

Step-by-Step Continued III

Step-by-Step Continued IV