Document Object Model (DOM)
===========================
// -rw-r--r-- 1 lupan lupan 3015 2006-03-21 02:42 dom.txt~
* http://www.w3.org/TR/DOM-Level-2-Core/[Document Object Model (DOM)
Level 2 Core Specification] (Rekomendacja W3C)
* link:zad2.xhtml[Zadanie 2]
Xerces2 na mancie
-----------------
W shellu lub w `~/.bash_profile`
export CLASSPATH=/usr/share/java2/xercesImpl.jar:/usr/share/java2/xml-apis.jar:.
Rzeczywiście mam nowszą wersję biblioteki Xerces1 niż jest na mancie:
....
## @psi
$ java -classpath /usr/share/java/xerces.jar org.apache.xerces.framework.Version
Xerces 1.4.4
## @manta
$ java -classpath /usr/share/java/xerces.jar org.apache.xerces.framework.Version
Xerces 1.2.3
....
Ale te same wersje Xerces 2
....
## @psi
$ java -classpath /usr/share/java/xercesImpl.jar org.apache.xerces.impl.Version
Xerces-J 2.6.2
## @manta
$ java -classpath /usr/share/java2/xercesImpl.jar org.apache.xerces.impl.Version
Xerces-J 2.6.2
....
Przykład
--------
Program dodający do drzewa czytanego ze standardowego wejścia liczby
podane w argumentach przy zachowaniu sortowania i wypisujący
rozszerzone drzewo na standardowe wyjście.
Dla przykładowego wywołania
....
$ echo '' \
' ' \
| java SortedTreeExpander 12 7 13 14 7 \
| java SortedTreeExpander 19 7
....
uzyskujemy na standardowym wyjściu dokument
[xml]
xxxx
xxxx
opisany schematem link:sorted-tree.xsd[]:
htmlize::sorted-tree.xsd[]
oraz link:sorted-tree.dtd[]:
htmlize::sorted-tree.dtd[]
Program ma postać link:pub/SortedTreeExpander.java[]:
htmlize::pub/SortedTreeExpander.java[]
// htmlize::SortedTreeExpander2.java[]
[[zad2]]
Zadanie 2
---------
link:zad2.xhtml[Zadanie 2]
/////
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1590626202[Model struktury DOM]
http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/DefaultHandler.html[DefaultHandler]
,,Core'' is for XML, on top of it is HTML interface.
* http://www.w3.org/TR/REC-DOM-Level-1/[Document Object Model (Core) Level 1]
* http://xerces.apache.org/xerces-j/schema.html[Applying schema to documents]
xml in python: http://www.xml.com/pub/a/2003/09/10/py.html
http://www.xml.com/pub/a/2004/10/13/py-xml.html
http://mail.python.org/pipermail/xml-sig/2003-October/009909.html
http://pyxml.sourceforge.net/topics/
Validating Relax NG with libxml2 and Python
http://www.halfcooked.com/mt/archives/000892.html
http://www.oasis-open.org/committees/relax-ng/spec-20011203.html
RelaxNG tutorial
http://www.relaxng.org/tutorial-20011203.html
Local Variables:
coding: utf-8
ispell-local-dictionary: "polish"
End:
LocalWords: DTD
/////