Penultimate draft
[ipdf/sam.git] / chapters / Background / Standards / DOM.tex
index dc033ca..a7dc00a 100644 (file)
@@ -6,12 +6,12 @@ Version 5 of the Hypertext Markup Language (HTML5) is currently a candidate reco
 
 The Scalable Vector Graphics (SVG) recommendation defines a language for representing vector images using the DOM. This is intended not only for stand alone images, but also for inclusion within HTML documents. In the SVG standard, each graphics primitive is an element in the DOM, whilst attributes of the element give information about how the primitive is to be drawn, such as path coordinates, line thickness, mitre styles and fill colours.
 
-In the SVG representation, general shapes can be specified by locations of enclosed curves using B\'{e}zier splines (Section \ref{}) - the construction of these curves is very similar to PostScript (refer to Figure \ref{}). Again, text is created using vector fonts as described in Section \ref{}.
+In the SVG representation, general shapes can be specified by locations of enclosed curves using B\'{e}zier splines (Section \ref{Bezier Splines}) - the construction of these curves is very similar to PostScript (refer to Figure \ref{spline.pdf}). Again, text is created using vector fonts as described in Section \ref{Fonts}.
 
 Figure \ref{SVG} shows an example of an SVG image as rendered (left) and represented as text. The textual representation is syntactically a subset of XML and is similar to HTML.\footnote{The details of distinctions between these languages are beyond the scope of this report.} Here we have used \verb/<rect>/ elements to position rectangles and \verb/<path>/ elements to define a straight line and a filled region bounded by a cubic bezier spline; note that the points and type of curves are defined as a data attribute.
 
 %\begin{comment}
-\subsubsection{Javascript and the DOM}
+\subsection{Javascript and the DOM}
 
 Using Javascript, an element in the DOM can be selected by its type, class, name, or unique identifier, each of which may be specified as an attribute in the original DOM. Once an element is selected Javascript can be used to modify its attributes, add children below it in the DOM, or remove it from the DOM entirely.
 
@@ -69,7 +69,7 @@ In HTML5, Javascript is not restricted to merely manipulating the DOM to alter t
        \includegraphics[width=1\textwidth]{figures/shape.pdf}
        \end{figure}
 \end{minipage}
-       \caption{Vector image and a possible SVG representation}\label{SVG}
+       \caption{Vector image and a possible SVG representation} \label{SVG}
 \end{figure}
 
 \begin{figure}[H]

UCC git Repository :: git.ucc.asn.au