Generating a Basic Bar Chart in SVG

   



Key Points

  • XSL stylesheets consist of one or more templates that are invoked when they match an element in an XML document.

  • Default templates are invoked to process an element if no explicit template exists in the XSL stylesheet for processing the element in question.

  • Every template has a priority used to determine which template to apply to an element when more than one template matches an element in a document.

  • The higher the specificity of a template, the higher its priority. Templates defined in stylesheets that you import into your stylesheet have lower priority than the templates explicitly defined in your stylesheet.

  • XSL allows you to specify 13 axes when searching for elements in an XML document.

  • An index of a list of elements starts from 1 and not 0.

  • XSL has built-in functions such as count that can be used for counting the number of nodes in an XML document (or a sub-tree of the document).

  • XSL stylsheets consist of templates that can contain XML, HTML, or SVG elements, which means that you can apply an XSL stylesheet to an XML document in order to generate an HTML document, an SVG document, or another XML document.

  • XPath enables you to examine each node in an XML document and determine whether it qualifies for inclusion in a node set.

  • XSL contains five types of nodes and provides built-in functions that can determine which type of node is being processed.

  • An XSL location path consists of an axis, a node test, and an optional predicate.

  • XSL defines 13 axes that can be used in templates in order to generate node sets.



   



Fundamentals of SVG Programming. Concepts to Source Code
Fundamentals of SVG Programming: Concepts to Source Code (Graphics Series)
ISBN: 1584502983
EAN: 2147483647
Year: 2003
Pages: 362

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net