The Open Source Swiss Army Knife

/xml/
/xml/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /xml 
Permalink: xml_definitions.htm
Title: assigning order to chaos
article options : please login   |  print view

xml and xsl terms and definitions

  1. general procedure
  2. parsers
  3. xml definitions
  4. xsl definitions
  5. dtd definitions
  6. xpath

general procedure

Create an xml file with the elements of your choosing. Then, create your style sheet and link the style sheet to the XML document. The xml document can be accessed via microsoft explorer but not yet with netscape, which provides no support for xml today. Or, write the code to interface with the API of a command-line parser like xp by james clark.

parsers

more information is available here

xpis the xml-parser itself
xtis an implementation in Java of XSL Transformations.
non-validating XML parserdoes not check the attributes against the DTD
sablotrona C parser runs on top ofexpat gives it XSL capabilities??

xml definitions

well-formed XML documentone that "looks right" but whose logical structure is not validated agianst the DTD.
valid XML documentall the entities it uses must be declared in the DTD
attribute specificationsName eq Attvalue
HREF="http://www.w3.org/XML/Activity". WARNING: In XML all attribute values must be quoted.
entityall things which are not part of the xml document
contentthe text enclosed by a beginning and end tag, that is, the text between the < and a >

xsl definitions

XSL
eXtensible Stylesheet Language is a stylesheet language for XML; transforms, defines and formats XML documents. It consists of XSLT, XPath, and XSL Formatting Objects.
XSLTExtensible Stylesheet Language for Transformation is a language to transform XML. A transformation expressed in XSLT is called a stylesheet. This is because, in the case when XSLT is transforming into the XSL formatting vocabulary, the transformation functions as a stylesheet.
XSL Formatting Objects...a language to define XML display

dtd definitions

Attribute-list declarationseach element type has a list of allowed attributes which is declared in the DTD attribute-list-declaration
attribute typeFor validity, each attribute specification must have a value that is of the correct type for that attribute. XML divides attribute types into three groups: string types, tokenized types, and enumerated types.
enumerated attribute typeis an attribute-type that offers a fixed-range of options. It is either a notation type or a general-purpose enumeration.
notation type attributesNOTATION (A | B | ...)
a range of image format:
NOTATION (BMP | WMP | JPG | GIF | TIFF | JPEG)
enumeration typesconsist of a set of Nmtokens
(HAM | BEEF | MUSHROOM | EXTRA_CHEESE)
content-modelspecifies the allowed sequence and number of occurrences of subelements
(front,body,back?) says <front><back> followed by an optional <back>
(head, (p | list | note)*, div2*)
<head> follwed by zero or more <p> <list> <note> and followed by zer or more <div>
mixed-content declarationsthis states that character data (#PCDATA) is allowed and lists the elements that are additionally allowed within this element.
(#PCDATA | person | date | place)*
(#PCDATA)
predefined entitiesamp, lt, gt, apos, quote
external entityCannot be put into attribute values. You can refer to external entities in XML attributes but you need to use the ENTITY or ENTITIES attribute type and quote them by name.
keyworddescription
ELEMENTdeclares the main entry delimited by the > and < items
possible values:
  1. pcdata -- content is normal text
  2. ??
ATTLISTdeclares xml attribute names
ENTITYdeclares external references
NOTATIONdeclares non-xml content (binary images)

xpath

XPath
A language to define XML parts or patterns
location paththe location of a node or group of nodes somewhere in a document. A good example of this is the match attribute of <xsl:template>. A location path consists of a series of steps, each of which carries the path further from the starting point: axis, node test, predicates.
node axesPart of location path; describes the direction of travel. The default value is Child.
absolute patha location path beginning at a fixed reference point, namely the root node
relative pathbegins at a variable point that we call the context node

Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top