First commit.
This commit is contained in:
commit
b1db8ddb59
47 changed files with 11386 additions and 0 deletions
91
build.xml
Normal file
91
build.xml
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE project>
|
||||||
|
<!-- Builds the XID Framework jar filen. -->
|
||||||
|
<project name="xid" default="all" basedir=".">
|
||||||
|
<property name="targetjar" value="xid.jar"/>
|
||||||
|
<property name="zip_file" value="xid.zip"/> <!-- Release zip file -->
|
||||||
|
<property name="src" value="src"/>
|
||||||
|
<property name="build" value="build"/>
|
||||||
|
<property name="doc" value="doc"/>
|
||||||
|
<property name="dist" value="dist"/>
|
||||||
|
<property name="resources" value="resources"/>
|
||||||
|
<property name="debug" value="on"/>
|
||||||
|
|
||||||
|
<target name="all" depends="compile,xid_dist,examples" />
|
||||||
|
|
||||||
|
<!-- ******* Init ******* -->
|
||||||
|
<target name="init">
|
||||||
|
<tstamp/>
|
||||||
|
<mkdir dir="${build}"/>
|
||||||
|
<mkdir dir="${build}/classes"/>
|
||||||
|
<mkdir dir="${dist}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ******* Compile ******* -->
|
||||||
|
<target name="compile" depends="init">
|
||||||
|
<javac srcdir="${src}" destdir="${build}/classes" debug="${debug}" deprecation="on">
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ****** xid.jar ****** -->
|
||||||
|
<target name="xid_dist" depends="compile">
|
||||||
|
<jar update="no" jarfile="dist/xid.jar">
|
||||||
|
<fileset dir="build/classes" includes="xid/**/**.class" />
|
||||||
|
<fileset dir="resources" includes="**" />
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ******* Examples (the webapp). ******* -->
|
||||||
|
<target name="examples" depends="xid_dist">
|
||||||
|
|
||||||
|
<copy todir="webapp-examples/WEB-INF/lib">
|
||||||
|
<fileset dir="lib" includes="*.jar" excludes="servlet-api.jar"/>
|
||||||
|
<fileset dir="dist" includes="*.jar"/>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy file="${dist}/xid.jar" todir="webapp-examples/WEB-INF/lib" overwrite="yes" preservelastmodified="yes"/>
|
||||||
|
|
||||||
|
<delete>
|
||||||
|
<fileset dir="webapp-examples/WEB-INF/classes/" includes="**.class"/>
|
||||||
|
<fileset dir="webapp-examples/WEB-INF/classes/" includes="**/**.class"/>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<javac srcdir="webapp-examples/WEB-INF/classes/" destdir="webapp-examples/WEB-INF/classes/" debug="${debug}" deprecation="on">
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="webapp-examples/WEB-INF/lib" includes="**.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ****** JavaDoc ****** -->
|
||||||
|
<target name="javadoc" depends="compile">
|
||||||
|
<javadoc sourcepath="${src}" packageNames="xid.*" destdir="${doc}">
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- *************** Clean ***********************-->
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- *********** Produce ZIP release file ******** -->
|
||||||
|
<target name="zip">
|
||||||
|
<zip update="no" zipfile="../${zip_file}" basedir=".">
|
||||||
|
<include name=".project" />
|
||||||
|
<include name=".classpath" />
|
||||||
|
<include name="build.xml" />
|
||||||
|
<include name="src/**" />
|
||||||
|
<include name="resources/**" />
|
||||||
|
<include name="lib/*.jar" />
|
||||||
|
</zip>
|
||||||
|
</target>
|
||||||
|
</project>
|
12
changelog.txt
Normal file
12
changelog.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
V_003: 12/03/2006
|
||||||
|
- add build.xml file
|
||||||
|
- Vue class rename Presenter
|
||||||
|
- debug of object tag
|
||||||
|
- add webappPath capability
|
||||||
|
|
||||||
|
V_004: 12/05/2006
|
||||||
|
-
|
||||||
|
|
||||||
|
20061214, cpm, import dans snv sur https://www.ocmland.org/svn/Xid
|
||||||
|
|
BIN
dist/xid.jar
vendored
Normal file
BIN
dist/xid.jar
vendored
Normal file
Binary file not shown.
BIN
lib/activation.jar
Normal file
BIN
lib/activation.jar
Normal file
Binary file not shown.
BIN
lib/log4j-1.2.14.jar
Normal file
BIN
lib/log4j-1.2.14.jar
Normal file
Binary file not shown.
BIN
lib/mail.jar
Normal file
BIN
lib/mail.jar
Normal file
Binary file not shown.
BIN
lib/servlet-api.jar
Normal file
BIN
lib/servlet-api.jar
Normal file
Binary file not shown.
196
resources/xhtml-lat1.ent
Normal file
196
resources/xhtml-lat1.ent
Normal file
|
@ -0,0 +1,196 @@
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLlat1 PUBLIC
|
||||||
|
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
|
||||||
|
%HTMLlat1;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!ENTITY nbsp " "> <!-- no-break space = non-breaking space,
|
||||||
|
U+00A0 ISOnum -->
|
||||||
|
<!ENTITY iexcl "¡"> <!-- inverted exclamation mark, U+00A1 ISOnum -->
|
||||||
|
<!ENTITY cent "¢"> <!-- cent sign, U+00A2 ISOnum -->
|
||||||
|
<!ENTITY pound "£"> <!-- pound sign, U+00A3 ISOnum -->
|
||||||
|
<!ENTITY curren "¤"> <!-- currency sign, U+00A4 ISOnum -->
|
||||||
|
<!ENTITY yen "¥"> <!-- yen sign = yuan sign, U+00A5 ISOnum -->
|
||||||
|
<!ENTITY brvbar "¦"> <!-- broken bar = broken vertical bar,
|
||||||
|
U+00A6 ISOnum -->
|
||||||
|
<!ENTITY sect "§"> <!-- section sign, U+00A7 ISOnum -->
|
||||||
|
<!ENTITY uml "¨"> <!-- diaeresis = spacing diaeresis,
|
||||||
|
U+00A8 ISOdia -->
|
||||||
|
<!ENTITY copy "©"> <!-- copyright sign, U+00A9 ISOnum -->
|
||||||
|
<!ENTITY ordf "ª"> <!-- feminine ordinal indicator, U+00AA ISOnum -->
|
||||||
|
<!ENTITY laquo "«"> <!-- left-pointing double angle quotation mark
|
||||||
|
= left pointing guillemet, U+00AB ISOnum -->
|
||||||
|
<!ENTITY not "¬"> <!-- not sign = angled dash,
|
||||||
|
U+00AC ISOnum -->
|
||||||
|
<!ENTITY shy "­"> <!-- soft hyphen = discretionary hyphen,
|
||||||
|
U+00AD ISOnum -->
|
||||||
|
<!ENTITY reg "®"> <!-- registered sign = registered trade mark sign,
|
||||||
|
U+00AE ISOnum -->
|
||||||
|
<!ENTITY macr "¯"> <!-- macron = spacing macron = overline
|
||||||
|
= APL overbar, U+00AF ISOdia -->
|
||||||
|
<!ENTITY deg "°"> <!-- degree sign, U+00B0 ISOnum -->
|
||||||
|
<!ENTITY plusmn "±"> <!-- plus-minus sign = plus-or-minus sign,
|
||||||
|
U+00B1 ISOnum -->
|
||||||
|
<!ENTITY sup2 "²"> <!-- superscript two = superscript digit two
|
||||||
|
= squared, U+00B2 ISOnum -->
|
||||||
|
<!ENTITY sup3 "³"> <!-- superscript three = superscript digit three
|
||||||
|
= cubed, U+00B3 ISOnum -->
|
||||||
|
<!ENTITY acute "´"> <!-- acute accent = spacing acute,
|
||||||
|
U+00B4 ISOdia -->
|
||||||
|
<!ENTITY micro "µ"> <!-- micro sign, U+00B5 ISOnum -->
|
||||||
|
<!ENTITY para "¶"> <!-- pilcrow sign = paragraph sign,
|
||||||
|
U+00B6 ISOnum -->
|
||||||
|
<!ENTITY middot "·"> <!-- middle dot = Georgian comma
|
||||||
|
= Greek middle dot, U+00B7 ISOnum -->
|
||||||
|
<!ENTITY cedil "¸"> <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
|
||||||
|
<!ENTITY sup1 "¹"> <!-- superscript one = superscript digit one,
|
||||||
|
U+00B9 ISOnum -->
|
||||||
|
<!ENTITY ordm "º"> <!-- masculine ordinal indicator,
|
||||||
|
U+00BA ISOnum -->
|
||||||
|
<!ENTITY raquo "»"> <!-- right-pointing double angle quotation mark
|
||||||
|
= right pointing guillemet, U+00BB ISOnum -->
|
||||||
|
<!ENTITY frac14 "¼"> <!-- vulgar fraction one quarter
|
||||||
|
= fraction one quarter, U+00BC ISOnum -->
|
||||||
|
<!ENTITY frac12 "½"> <!-- vulgar fraction one half
|
||||||
|
= fraction one half, U+00BD ISOnum -->
|
||||||
|
<!ENTITY frac34 "¾"> <!-- vulgar fraction three quarters
|
||||||
|
= fraction three quarters, U+00BE ISOnum -->
|
||||||
|
<!ENTITY iquest "¿"> <!-- inverted question mark
|
||||||
|
= turned question mark, U+00BF ISOnum -->
|
||||||
|
<!ENTITY Agrave "À"> <!-- latin capital letter A with grave
|
||||||
|
= latin capital letter A grave,
|
||||||
|
U+00C0 ISOlat1 -->
|
||||||
|
<!ENTITY Aacute "Á"> <!-- latin capital letter A with acute,
|
||||||
|
U+00C1 ISOlat1 -->
|
||||||
|
<!ENTITY Acirc "Â"> <!-- latin capital letter A with circumflex,
|
||||||
|
U+00C2 ISOlat1 -->
|
||||||
|
<!ENTITY Atilde "Ã"> <!-- latin capital letter A with tilde,
|
||||||
|
U+00C3 ISOlat1 -->
|
||||||
|
<!ENTITY Auml "Ä"> <!-- latin capital letter A with diaeresis,
|
||||||
|
U+00C4 ISOlat1 -->
|
||||||
|
<!ENTITY Aring "Å"> <!-- latin capital letter A with ring above
|
||||||
|
= latin capital letter A ring,
|
||||||
|
U+00C5 ISOlat1 -->
|
||||||
|
<!ENTITY AElig "Æ"> <!-- latin capital letter AE
|
||||||
|
= latin capital ligature AE,
|
||||||
|
U+00C6 ISOlat1 -->
|
||||||
|
<!ENTITY Ccedil "Ç"> <!-- latin capital letter C with cedilla,
|
||||||
|
U+00C7 ISOlat1 -->
|
||||||
|
<!ENTITY Egrave "È"> <!-- latin capital letter E with grave,
|
||||||
|
U+00C8 ISOlat1 -->
|
||||||
|
<!ENTITY Eacute "É"> <!-- latin capital letter E with acute,
|
||||||
|
U+00C9 ISOlat1 -->
|
||||||
|
<!ENTITY Ecirc "Ê"> <!-- latin capital letter E with circumflex,
|
||||||
|
U+00CA ISOlat1 -->
|
||||||
|
<!ENTITY Euml "Ë"> <!-- latin capital letter E with diaeresis,
|
||||||
|
U+00CB ISOlat1 -->
|
||||||
|
<!ENTITY Igrave "Ì"> <!-- latin capital letter I with grave,
|
||||||
|
U+00CC ISOlat1 -->
|
||||||
|
<!ENTITY Iacute "Í"> <!-- latin capital letter I with acute,
|
||||||
|
U+00CD ISOlat1 -->
|
||||||
|
<!ENTITY Icirc "Î"> <!-- latin capital letter I with circumflex,
|
||||||
|
U+00CE ISOlat1 -->
|
||||||
|
<!ENTITY Iuml "Ï"> <!-- latin capital letter I with diaeresis,
|
||||||
|
U+00CF ISOlat1 -->
|
||||||
|
<!ENTITY ETH "Ð"> <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
|
||||||
|
<!ENTITY Ntilde "Ñ"> <!-- latin capital letter N with tilde,
|
||||||
|
U+00D1 ISOlat1 -->
|
||||||
|
<!ENTITY Ograve "Ò"> <!-- latin capital letter O with grave,
|
||||||
|
U+00D2 ISOlat1 -->
|
||||||
|
<!ENTITY Oacute "Ó"> <!-- latin capital letter O with acute,
|
||||||
|
U+00D3 ISOlat1 -->
|
||||||
|
<!ENTITY Ocirc "Ô"> <!-- latin capital letter O with circumflex,
|
||||||
|
U+00D4 ISOlat1 -->
|
||||||
|
<!ENTITY Otilde "Õ"> <!-- latin capital letter O with tilde,
|
||||||
|
U+00D5 ISOlat1 -->
|
||||||
|
<!ENTITY Ouml "Ö"> <!-- latin capital letter O with diaeresis,
|
||||||
|
U+00D6 ISOlat1 -->
|
||||||
|
<!ENTITY times "×"> <!-- multiplication sign, U+00D7 ISOnum -->
|
||||||
|
<!ENTITY Oslash "Ø"> <!-- latin capital letter O with stroke
|
||||||
|
= latin capital letter O slash,
|
||||||
|
U+00D8 ISOlat1 -->
|
||||||
|
<!ENTITY Ugrave "Ù"> <!-- latin capital letter U with grave,
|
||||||
|
U+00D9 ISOlat1 -->
|
||||||
|
<!ENTITY Uacute "Ú"> <!-- latin capital letter U with acute,
|
||||||
|
U+00DA ISOlat1 -->
|
||||||
|
<!ENTITY Ucirc "Û"> <!-- latin capital letter U with circumflex,
|
||||||
|
U+00DB ISOlat1 -->
|
||||||
|
<!ENTITY Uuml "Ü"> <!-- latin capital letter U with diaeresis,
|
||||||
|
U+00DC ISOlat1 -->
|
||||||
|
<!ENTITY Yacute "Ý"> <!-- latin capital letter Y with acute,
|
||||||
|
U+00DD ISOlat1 -->
|
||||||
|
<!ENTITY THORN "Þ"> <!-- latin capital letter THORN,
|
||||||
|
U+00DE ISOlat1 -->
|
||||||
|
<!ENTITY szlig "ß"> <!-- latin small letter sharp s = ess-zed,
|
||||||
|
U+00DF ISOlat1 -->
|
||||||
|
<!ENTITY agrave "à"> <!-- latin small letter a with grave
|
||||||
|
= latin small letter a grave,
|
||||||
|
U+00E0 ISOlat1 -->
|
||||||
|
<!ENTITY aacute "á"> <!-- latin small letter a with acute,
|
||||||
|
U+00E1 ISOlat1 -->
|
||||||
|
<!ENTITY acirc "â"> <!-- latin small letter a with circumflex,
|
||||||
|
U+00E2 ISOlat1 -->
|
||||||
|
<!ENTITY atilde "ã"> <!-- latin small letter a with tilde,
|
||||||
|
U+00E3 ISOlat1 -->
|
||||||
|
<!ENTITY auml "ä"> <!-- latin small letter a with diaeresis,
|
||||||
|
U+00E4 ISOlat1 -->
|
||||||
|
<!ENTITY aring "å"> <!-- latin small letter a with ring above
|
||||||
|
= latin small letter a ring,
|
||||||
|
U+00E5 ISOlat1 -->
|
||||||
|
<!ENTITY aelig "æ"> <!-- latin small letter ae
|
||||||
|
= latin small ligature ae, U+00E6 ISOlat1 -->
|
||||||
|
<!ENTITY ccedil "ç"> <!-- latin small letter c with cedilla,
|
||||||
|
U+00E7 ISOlat1 -->
|
||||||
|
<!ENTITY egrave "è"> <!-- latin small letter e with grave,
|
||||||
|
U+00E8 ISOlat1 -->
|
||||||
|
<!ENTITY eacute "é"> <!-- latin small letter e with acute,
|
||||||
|
U+00E9 ISOlat1 -->
|
||||||
|
<!ENTITY ecirc "ê"> <!-- latin small letter e with circumflex,
|
||||||
|
U+00EA ISOlat1 -->
|
||||||
|
<!ENTITY euml "ë"> <!-- latin small letter e with diaeresis,
|
||||||
|
U+00EB ISOlat1 -->
|
||||||
|
<!ENTITY igrave "ì"> <!-- latin small letter i with grave,
|
||||||
|
U+00EC ISOlat1 -->
|
||||||
|
<!ENTITY iacute "í"> <!-- latin small letter i with acute,
|
||||||
|
U+00ED ISOlat1 -->
|
||||||
|
<!ENTITY icirc "î"> <!-- latin small letter i with circumflex,
|
||||||
|
U+00EE ISOlat1 -->
|
||||||
|
<!ENTITY iuml "ï"> <!-- latin small letter i with diaeresis,
|
||||||
|
U+00EF ISOlat1 -->
|
||||||
|
<!ENTITY eth "ð"> <!-- latin small letter eth, U+00F0 ISOlat1 -->
|
||||||
|
<!ENTITY ntilde "ñ"> <!-- latin small letter n with tilde,
|
||||||
|
U+00F1 ISOlat1 -->
|
||||||
|
<!ENTITY ograve "ò"> <!-- latin small letter o with grave,
|
||||||
|
U+00F2 ISOlat1 -->
|
||||||
|
<!ENTITY oacute "ó"> <!-- latin small letter o with acute,
|
||||||
|
U+00F3 ISOlat1 -->
|
||||||
|
<!ENTITY ocirc "ô"> <!-- latin small letter o with circumflex,
|
||||||
|
U+00F4 ISOlat1 -->
|
||||||
|
<!ENTITY otilde "õ"> <!-- latin small letter o with tilde,
|
||||||
|
U+00F5 ISOlat1 -->
|
||||||
|
<!ENTITY ouml "ö"> <!-- latin small letter o with diaeresis,
|
||||||
|
U+00F6 ISOlat1 -->
|
||||||
|
<!ENTITY divide "÷"> <!-- division sign, U+00F7 ISOnum -->
|
||||||
|
<!ENTITY oslash "ø"> <!-- latin small letter o with stroke,
|
||||||
|
= latin small letter o slash,
|
||||||
|
U+00F8 ISOlat1 -->
|
||||||
|
<!ENTITY ugrave "ù"> <!-- latin small letter u with grave,
|
||||||
|
U+00F9 ISOlat1 -->
|
||||||
|
<!ENTITY uacute "ú"> <!-- latin small letter u with acute,
|
||||||
|
U+00FA ISOlat1 -->
|
||||||
|
<!ENTITY ucirc "û"> <!-- latin small letter u with circumflex,
|
||||||
|
U+00FB ISOlat1 -->
|
||||||
|
<!ENTITY uuml "ü"> <!-- latin small letter u with diaeresis,
|
||||||
|
U+00FC ISOlat1 -->
|
||||||
|
<!ENTITY yacute "ý"> <!-- latin small letter y with acute,
|
||||||
|
U+00FD ISOlat1 -->
|
||||||
|
<!ENTITY thorn "þ"> <!-- latin small letter thorn,
|
||||||
|
U+00FE ISOlat1 -->
|
||||||
|
<!ENTITY yuml "ÿ"> <!-- latin small letter y with diaeresis,
|
||||||
|
U+00FF ISOlat1 -->
|
82
resources/xhtml-special.ent
Normal file
82
resources/xhtml-special.ent
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
<!-- Special characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLspecial PUBLIC
|
||||||
|
"-//W3C//ENTITIES Special for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
|
||||||
|
%HTMLspecial;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- C0 Controls and Basic Latin -->
|
||||||
|
|
||||||
|
<!-- CB 10/03/2003 Commented out as these are already defined in XML -->
|
||||||
|
<!-- ENTITY quot """> quotation mark, U+0022 ISOnum -->
|
||||||
|
<!-- ENTITY amp "&#38;"> ampersand, U+0026 ISOnum -->
|
||||||
|
<!-- ENTITY lt "&#60;"> less-than sign, U+003C ISOnum -->
|
||||||
|
<!-- ENTITY gt ">"> greater-than sign, U+003E ISOnum -->
|
||||||
|
<!-- ENTITY apos "'"> apostrophe = APL quote, U+0027 ISOnum -->
|
||||||
|
|
||||||
|
<!-- Latin Extended-A -->
|
||||||
|
<!ENTITY OElig "Œ"> <!-- latin capital ligature OE,
|
||||||
|
U+0152 ISOlat2 -->
|
||||||
|
<!ENTITY oelig "œ"> <!-- latin small ligature oe, U+0153 ISOlat2 -->
|
||||||
|
<!-- ligature is a misnomer, this is a separate character in some languages -->
|
||||||
|
<!ENTITY Scaron "Š"> <!-- latin capital letter S with caron,
|
||||||
|
U+0160 ISOlat2 -->
|
||||||
|
<!ENTITY scaron "š"> <!-- latin small letter s with caron,
|
||||||
|
U+0161 ISOlat2 -->
|
||||||
|
<!ENTITY Yuml "Ÿ"> <!-- latin capital letter Y with diaeresis,
|
||||||
|
U+0178 ISOlat2 -->
|
||||||
|
|
||||||
|
<!-- Spacing Modifier Letters -->
|
||||||
|
<!ENTITY circ "ˆ"> <!-- modifier letter circumflex accent,
|
||||||
|
U+02C6 ISOpub -->
|
||||||
|
<!ENTITY tilde "˜"> <!-- small tilde, U+02DC ISOdia -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY ensp " "> <!-- en space, U+2002 ISOpub -->
|
||||||
|
<!ENTITY emsp " "> <!-- em space, U+2003 ISOpub -->
|
||||||
|
<!ENTITY thinsp " "> <!-- thin space, U+2009 ISOpub -->
|
||||||
|
<!ENTITY zwnj "‌"> <!-- zero width non-joiner,
|
||||||
|
U+200C NEW RFC 2070 -->
|
||||||
|
<!ENTITY zwj "‍"> <!-- zero width joiner, U+200D NEW RFC 2070 -->
|
||||||
|
<!ENTITY lrm "‎"> <!-- left-to-right mark, U+200E NEW RFC 2070 -->
|
||||||
|
<!ENTITY rlm "‏"> <!-- right-to-left mark, U+200F NEW RFC 2070 -->
|
||||||
|
<!ENTITY ndash "–"> <!-- en dash, U+2013 ISOpub -->
|
||||||
|
<!ENTITY mdash "—"> <!-- em dash, U+2014 ISOpub -->
|
||||||
|
<!ENTITY lsquo "‘"> <!-- left single quotation mark,
|
||||||
|
U+2018 ISOnum -->
|
||||||
|
<!ENTITY rsquo "’"> <!-- right single quotation mark,
|
||||||
|
U+2019 ISOnum -->
|
||||||
|
<!ENTITY sbquo "‚"> <!-- single low-9 quotation mark, U+201A NEW -->
|
||||||
|
<!ENTITY ldquo "“"> <!-- left double quotation mark,
|
||||||
|
U+201C ISOnum -->
|
||||||
|
<!ENTITY rdquo "”"> <!-- right double quotation mark,
|
||||||
|
U+201D ISOnum -->
|
||||||
|
<!ENTITY bdquo "„"> <!-- double low-9 quotation mark, U+201E NEW -->
|
||||||
|
<!ENTITY dagger "†"> <!-- dagger, U+2020 ISOpub -->
|
||||||
|
<!ENTITY Dagger "‡"> <!-- double dagger, U+2021 ISOpub -->
|
||||||
|
<!ENTITY permil "‰"> <!-- per mille sign, U+2030 ISOtech -->
|
||||||
|
<!ENTITY lsaquo "‹"> <!-- single left-pointing angle quotation mark,
|
||||||
|
U+2039 ISO proposed -->
|
||||||
|
<!-- lsaquo is proposed but not yet ISO standardized -->
|
||||||
|
<!ENTITY rsaquo "›"> <!-- single right-pointing angle quotation mark,
|
||||||
|
U+203A ISO proposed -->
|
||||||
|
<!-- rsaquo is proposed but not yet ISO standardized -->
|
||||||
|
|
||||||
|
<!-- Currency Symbols -->
|
||||||
|
<!ENTITY euro "€"> <!-- euro sign, U+20AC NEW -->
|
237
resources/xhtml-symbol.ent
Normal file
237
resources/xhtml-symbol.ent
Normal file
|
@ -0,0 +1,237 @@
|
||||||
|
<!-- Mathematical, Greek and Symbolic characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLsymbol PUBLIC
|
||||||
|
"-//W3C//ENTITIES Symbols for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
|
||||||
|
%HTMLsymbol;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Latin Extended-B -->
|
||||||
|
<!ENTITY fnof "ƒ"> <!-- latin small letter f with hook = function
|
||||||
|
= florin, U+0192 ISOtech -->
|
||||||
|
|
||||||
|
<!-- Greek -->
|
||||||
|
<!ENTITY Alpha "Α"> <!-- greek capital letter alpha, U+0391 -->
|
||||||
|
<!ENTITY Beta "Β"> <!-- greek capital letter beta, U+0392 -->
|
||||||
|
<!ENTITY Gamma "Γ"> <!-- greek capital letter gamma,
|
||||||
|
U+0393 ISOgrk3 -->
|
||||||
|
<!ENTITY Delta "Δ"> <!-- greek capital letter delta,
|
||||||
|
U+0394 ISOgrk3 -->
|
||||||
|
<!ENTITY Epsilon "Ε"> <!-- greek capital letter epsilon, U+0395 -->
|
||||||
|
<!ENTITY Zeta "Ζ"> <!-- greek capital letter zeta, U+0396 -->
|
||||||
|
<!ENTITY Eta "Η"> <!-- greek capital letter eta, U+0397 -->
|
||||||
|
<!ENTITY Theta "Θ"> <!-- greek capital letter theta,
|
||||||
|
U+0398 ISOgrk3 -->
|
||||||
|
<!ENTITY Iota "Ι"> <!-- greek capital letter iota, U+0399 -->
|
||||||
|
<!ENTITY Kappa "Κ"> <!-- greek capital letter kappa, U+039A -->
|
||||||
|
<!ENTITY Lambda "Λ"> <!-- greek capital letter lamda,
|
||||||
|
U+039B ISOgrk3 -->
|
||||||
|
<!ENTITY Mu "Μ"> <!-- greek capital letter mu, U+039C -->
|
||||||
|
<!ENTITY Nu "Ν"> <!-- greek capital letter nu, U+039D -->
|
||||||
|
<!ENTITY Xi "Ξ"> <!-- greek capital letter xi, U+039E ISOgrk3 -->
|
||||||
|
<!ENTITY Omicron "Ο"> <!-- greek capital letter omicron, U+039F -->
|
||||||
|
<!ENTITY Pi "Π"> <!-- greek capital letter pi, U+03A0 ISOgrk3 -->
|
||||||
|
<!ENTITY Rho "Ρ"> <!-- greek capital letter rho, U+03A1 -->
|
||||||
|
<!-- there is no Sigmaf, and no U+03A2 character either -->
|
||||||
|
<!ENTITY Sigma "Σ"> <!-- greek capital letter sigma,
|
||||||
|
U+03A3 ISOgrk3 -->
|
||||||
|
<!ENTITY Tau "Τ"> <!-- greek capital letter tau, U+03A4 -->
|
||||||
|
<!ENTITY Upsilon "Υ"> <!-- greek capital letter upsilon,
|
||||||
|
U+03A5 ISOgrk3 -->
|
||||||
|
<!ENTITY Phi "Φ"> <!-- greek capital letter phi,
|
||||||
|
U+03A6 ISOgrk3 -->
|
||||||
|
<!ENTITY Chi "Χ"> <!-- greek capital letter chi, U+03A7 -->
|
||||||
|
<!ENTITY Psi "Ψ"> <!-- greek capital letter psi,
|
||||||
|
U+03A8 ISOgrk3 -->
|
||||||
|
<!ENTITY Omega "Ω"> <!-- greek capital letter omega,
|
||||||
|
U+03A9 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!ENTITY alpha "α"> <!-- greek small letter alpha,
|
||||||
|
U+03B1 ISOgrk3 -->
|
||||||
|
<!ENTITY beta "β"> <!-- greek small letter beta, U+03B2 ISOgrk3 -->
|
||||||
|
<!ENTITY gamma "γ"> <!-- greek small letter gamma,
|
||||||
|
U+03B3 ISOgrk3 -->
|
||||||
|
<!ENTITY delta "δ"> <!-- greek small letter delta,
|
||||||
|
U+03B4 ISOgrk3 -->
|
||||||
|
<!ENTITY epsilon "ε"> <!-- greek small letter epsilon,
|
||||||
|
U+03B5 ISOgrk3 -->
|
||||||
|
<!ENTITY zeta "ζ"> <!-- greek small letter zeta, U+03B6 ISOgrk3 -->
|
||||||
|
<!ENTITY eta "η"> <!-- greek small letter eta, U+03B7 ISOgrk3 -->
|
||||||
|
<!ENTITY theta "θ"> <!-- greek small letter theta,
|
||||||
|
U+03B8 ISOgrk3 -->
|
||||||
|
<!ENTITY iota "ι"> <!-- greek small letter iota, U+03B9 ISOgrk3 -->
|
||||||
|
<!ENTITY kappa "κ"> <!-- greek small letter kappa,
|
||||||
|
U+03BA ISOgrk3 -->
|
||||||
|
<!ENTITY lambda "λ"> <!-- greek small letter lamda,
|
||||||
|
U+03BB ISOgrk3 -->
|
||||||
|
<!ENTITY mu "μ"> <!-- greek small letter mu, U+03BC ISOgrk3 -->
|
||||||
|
<!ENTITY nu "ν"> <!-- greek small letter nu, U+03BD ISOgrk3 -->
|
||||||
|
<!ENTITY xi "ξ"> <!-- greek small letter xi, U+03BE ISOgrk3 -->
|
||||||
|
<!ENTITY omicron "ο"> <!-- greek small letter omicron, U+03BF NEW -->
|
||||||
|
<!ENTITY pi "π"> <!-- greek small letter pi, U+03C0 ISOgrk3 -->
|
||||||
|
<!ENTITY rho "ρ"> <!-- greek small letter rho, U+03C1 ISOgrk3 -->
|
||||||
|
<!ENTITY sigmaf "ς"> <!-- greek small letter final sigma,
|
||||||
|
U+03C2 ISOgrk3 -->
|
||||||
|
<!ENTITY sigma "σ"> <!-- greek small letter sigma,
|
||||||
|
U+03C3 ISOgrk3 -->
|
||||||
|
<!ENTITY tau "τ"> <!-- greek small letter tau, U+03C4 ISOgrk3 -->
|
||||||
|
<!ENTITY upsilon "υ"> <!-- greek small letter upsilon,
|
||||||
|
U+03C5 ISOgrk3 -->
|
||||||
|
<!ENTITY phi "φ"> <!-- greek small letter phi, U+03C6 ISOgrk3 -->
|
||||||
|
<!ENTITY chi "χ"> <!-- greek small letter chi, U+03C7 ISOgrk3 -->
|
||||||
|
<!ENTITY psi "ψ"> <!-- greek small letter psi, U+03C8 ISOgrk3 -->
|
||||||
|
<!ENTITY omega "ω"> <!-- greek small letter omega,
|
||||||
|
U+03C9 ISOgrk3 -->
|
||||||
|
<!ENTITY thetasym "ϑ"> <!-- greek theta symbol,
|
||||||
|
U+03D1 NEW -->
|
||||||
|
<!ENTITY upsih "ϒ"> <!-- greek upsilon with hook symbol,
|
||||||
|
U+03D2 NEW -->
|
||||||
|
<!ENTITY piv "ϖ"> <!-- greek pi symbol, U+03D6 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY bull "•"> <!-- bullet = black small circle,
|
||||||
|
U+2022 ISOpub -->
|
||||||
|
<!-- bullet is NOT the same as bullet operator, U+2219 -->
|
||||||
|
<!ENTITY hellip "…"> <!-- horizontal ellipsis = three dot leader,
|
||||||
|
U+2026 ISOpub -->
|
||||||
|
<!ENTITY prime "′"> <!-- prime = minutes = feet, U+2032 ISOtech -->
|
||||||
|
<!ENTITY Prime "″"> <!-- double prime = seconds = inches,
|
||||||
|
U+2033 ISOtech -->
|
||||||
|
<!ENTITY oline "‾"> <!-- overline = spacing overscore,
|
||||||
|
U+203E NEW -->
|
||||||
|
<!ENTITY frasl "⁄"> <!-- fraction slash, U+2044 NEW -->
|
||||||
|
|
||||||
|
<!-- Letterlike Symbols -->
|
||||||
|
<!ENTITY weierp "℘"> <!-- script capital P = power set
|
||||||
|
= Weierstrass p, U+2118 ISOamso -->
|
||||||
|
<!ENTITY image "ℑ"> <!-- black-letter capital I = imaginary part,
|
||||||
|
U+2111 ISOamso -->
|
||||||
|
<!ENTITY real "ℜ"> <!-- black-letter capital R = real part symbol,
|
||||||
|
U+211C ISOamso -->
|
||||||
|
<!ENTITY trade "™"> <!-- trade mark sign, U+2122 ISOnum -->
|
||||||
|
<!ENTITY alefsym "ℵ"> <!-- alef symbol = first transfinite cardinal,
|
||||||
|
U+2135 NEW -->
|
||||||
|
<!-- alef symbol is NOT the same as hebrew letter alef,
|
||||||
|
U+05D0 although the same glyph could be used to depict both characters -->
|
||||||
|
|
||||||
|
<!-- Arrows -->
|
||||||
|
<!ENTITY larr "←"> <!-- leftwards arrow, U+2190 ISOnum -->
|
||||||
|
<!ENTITY uarr "↑"> <!-- upwards arrow, U+2191 ISOnum-->
|
||||||
|
<!ENTITY rarr "→"> <!-- rightwards arrow, U+2192 ISOnum -->
|
||||||
|
<!ENTITY darr "↓"> <!-- downwards arrow, U+2193 ISOnum -->
|
||||||
|
<!ENTITY harr "↔"> <!-- left right arrow, U+2194 ISOamsa -->
|
||||||
|
<!ENTITY crarr "↵"> <!-- downwards arrow with corner leftwards
|
||||||
|
= carriage return, U+21B5 NEW -->
|
||||||
|
<!ENTITY lArr "⇐"> <!-- leftwards double arrow, U+21D0 ISOtech -->
|
||||||
|
<!-- Unicode does not say that lArr is the same as the 'is implied by' arrow
|
||||||
|
but also does not have any other character for that function. So lArr can
|
||||||
|
be used for 'is implied by' as ISOtech suggests -->
|
||||||
|
<!ENTITY uArr "⇑"> <!-- upwards double arrow, U+21D1 ISOamsa -->
|
||||||
|
<!ENTITY rArr "⇒"> <!-- rightwards double arrow,
|
||||||
|
U+21D2 ISOtech -->
|
||||||
|
<!-- Unicode does not say this is the 'implies' character but does not have
|
||||||
|
another character with this function so rArr can be used for 'implies'
|
||||||
|
as ISOtech suggests -->
|
||||||
|
<!ENTITY dArr "⇓"> <!-- downwards double arrow, U+21D3 ISOamsa -->
|
||||||
|
<!ENTITY hArr "⇔"> <!-- left right double arrow,
|
||||||
|
U+21D4 ISOamsa -->
|
||||||
|
|
||||||
|
<!-- Mathematical Operators -->
|
||||||
|
<!ENTITY forall "∀"> <!-- for all, U+2200 ISOtech -->
|
||||||
|
<!ENTITY part "∂"> <!-- partial differential, U+2202 ISOtech -->
|
||||||
|
<!ENTITY exist "∃"> <!-- there exists, U+2203 ISOtech -->
|
||||||
|
<!ENTITY empty "∅"> <!-- empty set = null set, U+2205 ISOamso -->
|
||||||
|
<!ENTITY nabla "∇"> <!-- nabla = backward difference,
|
||||||
|
U+2207 ISOtech -->
|
||||||
|
<!ENTITY isin "∈"> <!-- element of, U+2208 ISOtech -->
|
||||||
|
<!ENTITY notin "∉"> <!-- not an element of, U+2209 ISOtech -->
|
||||||
|
<!ENTITY ni "∋"> <!-- contains as member, U+220B ISOtech -->
|
||||||
|
<!ENTITY prod "∏"> <!-- n-ary product = product sign,
|
||||||
|
U+220F ISOamsb -->
|
||||||
|
<!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
|
||||||
|
the same glyph might be used for both -->
|
||||||
|
<!ENTITY sum "∑"> <!-- n-ary summation, U+2211 ISOamsb -->
|
||||||
|
<!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
|
||||||
|
though the same glyph might be used for both -->
|
||||||
|
<!ENTITY minus "−"> <!-- minus sign, U+2212 ISOtech -->
|
||||||
|
<!ENTITY lowast "∗"> <!-- asterisk operator, U+2217 ISOtech -->
|
||||||
|
<!ENTITY radic "√"> <!-- square root = radical sign,
|
||||||
|
U+221A ISOtech -->
|
||||||
|
<!ENTITY prop "∝"> <!-- proportional to, U+221D ISOtech -->
|
||||||
|
<!ENTITY infin "∞"> <!-- infinity, U+221E ISOtech -->
|
||||||
|
<!ENTITY ang "∠"> <!-- angle, U+2220 ISOamso -->
|
||||||
|
<!ENTITY and "∧"> <!-- logical and = wedge, U+2227 ISOtech -->
|
||||||
|
<!ENTITY or "∨"> <!-- logical or = vee, U+2228 ISOtech -->
|
||||||
|
<!ENTITY cap "∩"> <!-- intersection = cap, U+2229 ISOtech -->
|
||||||
|
<!ENTITY cup "∪"> <!-- union = cup, U+222A ISOtech -->
|
||||||
|
<!ENTITY int "∫"> <!-- integral, U+222B ISOtech -->
|
||||||
|
<!ENTITY there4 "∴"> <!-- therefore, U+2234 ISOtech -->
|
||||||
|
<!ENTITY sim "∼"> <!-- tilde operator = varies with = similar to,
|
||||||
|
U+223C ISOtech -->
|
||||||
|
<!-- tilde operator is NOT the same character as the tilde, U+007E,
|
||||||
|
although the same glyph might be used to represent both -->
|
||||||
|
<!ENTITY cong "≅"> <!-- approximately equal to, U+2245 ISOtech -->
|
||||||
|
<!ENTITY asymp "≈"> <!-- almost equal to = asymptotic to,
|
||||||
|
U+2248 ISOamsr -->
|
||||||
|
<!ENTITY ne "≠"> <!-- not equal to, U+2260 ISOtech -->
|
||||||
|
<!ENTITY equiv "≡"> <!-- identical to, U+2261 ISOtech -->
|
||||||
|
<!ENTITY le "≤"> <!-- less-than or equal to, U+2264 ISOtech -->
|
||||||
|
<!ENTITY ge "≥"> <!-- greater-than or equal to,
|
||||||
|
U+2265 ISOtech -->
|
||||||
|
<!ENTITY sub "⊂"> <!-- subset of, U+2282 ISOtech -->
|
||||||
|
<!ENTITY sup "⊃"> <!-- superset of, U+2283 ISOtech -->
|
||||||
|
<!ENTITY nsub "⊄"> <!-- not a subset of, U+2284 ISOamsn -->
|
||||||
|
<!ENTITY sube "⊆"> <!-- subset of or equal to, U+2286 ISOtech -->
|
||||||
|
<!ENTITY supe "⊇"> <!-- superset of or equal to,
|
||||||
|
U+2287 ISOtech -->
|
||||||
|
<!ENTITY oplus "⊕"> <!-- circled plus = direct sum,
|
||||||
|
U+2295 ISOamsb -->
|
||||||
|
<!ENTITY otimes "⊗"> <!-- circled times = vector product,
|
||||||
|
U+2297 ISOamsb -->
|
||||||
|
<!ENTITY perp "⊥"> <!-- up tack = orthogonal to = perpendicular,
|
||||||
|
U+22A5 ISOtech -->
|
||||||
|
<!ENTITY sdot "⋅"> <!-- dot operator, U+22C5 ISOamsb -->
|
||||||
|
<!-- dot operator is NOT the same character as U+00B7 middle dot -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Technical -->
|
||||||
|
<!ENTITY lceil "⌈"> <!-- left ceiling = APL upstile,
|
||||||
|
U+2308 ISOamsc -->
|
||||||
|
<!ENTITY rceil "⌉"> <!-- right ceiling, U+2309 ISOamsc -->
|
||||||
|
<!ENTITY lfloor "⌊"> <!-- left floor = APL downstile,
|
||||||
|
U+230A ISOamsc -->
|
||||||
|
<!ENTITY rfloor "⌋"> <!-- right floor, U+230B ISOamsc -->
|
||||||
|
<!ENTITY lang "〈"> <!-- left-pointing angle bracket = bra,
|
||||||
|
U+2329 ISOtech -->
|
||||||
|
<!-- lang is NOT the same character as U+003C 'less than sign'
|
||||||
|
or U+2039 'single left-pointing angle quotation mark' -->
|
||||||
|
<!ENTITY rang "〉"> <!-- right-pointing angle bracket = ket,
|
||||||
|
U+232A ISOtech -->
|
||||||
|
<!-- rang is NOT the same character as U+003E 'greater than sign'
|
||||||
|
or U+203A 'single right-pointing angle quotation mark' -->
|
||||||
|
|
||||||
|
<!-- Geometric Shapes -->
|
||||||
|
<!ENTITY loz "◊"> <!-- lozenge, U+25CA ISOpub -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Symbols -->
|
||||||
|
<!ENTITY spades "♠"> <!-- black spade suit, U+2660 ISOpub -->
|
||||||
|
<!-- black here seems to mean filled as opposed to hollow -->
|
||||||
|
<!ENTITY clubs "♣"> <!-- black club suit = shamrock,
|
||||||
|
U+2663 ISOpub -->
|
||||||
|
<!ENTITY hearts "♥"> <!-- black heart suit = valentine,
|
||||||
|
U+2665 ISOpub -->
|
||||||
|
<!ENTITY diams "♦"> <!-- black diamond suit, U+2666 ISOpub -->
|
1235
resources/xhtml1-frameset.dtd
Normal file
1235
resources/xhtml1-frameset.dtd
Normal file
File diff suppressed because it is too large
Load diff
1210
resources/xhtml1-transitional.dtd
Normal file
1210
resources/xhtml1-transitional.dtd
Normal file
File diff suppressed because it is too large
Load diff
70
src/xid/Attributes.java
Normal file
70
src/xid/Attributes.java
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
package xid;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Note: no more AttrValue as in Brill, because the exception of style is managed
|
||||||
|
* in the attribute merging on the "style" string detection.
|
||||||
|
*/
|
||||||
|
public class Attributes extends HashMap<String, String>
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public Attributes ()
|
||||||
|
{
|
||||||
|
super ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setAttribute (String label, String value)
|
||||||
|
{
|
||||||
|
this.put (label, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add a value to an existing value. This is useful to the 'style' attribute.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void appendAttribute (String label, String value)
|
||||||
|
{
|
||||||
|
if (this.containsKey (label))
|
||||||
|
{
|
||||||
|
this.put (label, this.get (label) + value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.put (label, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public String getAttribute (String label)
|
||||||
|
{
|
||||||
|
String result;
|
||||||
|
|
||||||
|
if (this.containsKey (label))
|
||||||
|
{
|
||||||
|
result = this.get (label);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
159
src/xid/ParserErrorHandler.java
Normal file
159
src/xid/ParserErrorHandler.java
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
package xid;
|
||||||
|
|
||||||
|
import org.xml.sax.*;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extract from org.xml.sax Interface ErrorHandler:
|
||||||
|
* "If a SAX application needs to implement customized error handling,
|
||||||
|
* it must implement this interface and then register an instance with
|
||||||
|
* the XML reader using the setErrorHandler method. The parser will
|
||||||
|
* then report all errors and warnings through this interface."
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ParserErrorHandler implements ErrorHandler
|
||||||
|
{
|
||||||
|
Vector<String> messages;
|
||||||
|
int fatalErrorsCount;
|
||||||
|
int errorsCount;
|
||||||
|
int warningCount;
|
||||||
|
|
||||||
|
public ParserErrorHandler ()
|
||||||
|
{
|
||||||
|
fatalErrorsCount = 0;
|
||||||
|
errorsCount = 0;
|
||||||
|
warningCount = 0;
|
||||||
|
messages = new Vector<String> ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public int fatalErrorsCount ()
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
|
result = this.fatalErrorsCount;
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public int errorsCount ()
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
|
result = this.errorsCount;
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public int warningCount ()
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
|
result = this.warningCount;
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public int allErrorsCount ()
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
|
result = fatalErrorsCount () + errorsCount () + warningCount ();
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public boolean hasError ()
|
||||||
|
{
|
||||||
|
boolean result;
|
||||||
|
|
||||||
|
if (allErrorsCount () == 0)
|
||||||
|
{
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called by the XML parser to handle fatal errors.
|
||||||
|
* @param ex Parse Excpetion. Contains the warning text and the line number.
|
||||||
|
*/
|
||||||
|
public void error (SAXParseException exception)
|
||||||
|
{
|
||||||
|
String message = "Error at line " + exception.getLineNumber() + " : " + exception.getMessage();
|
||||||
|
|
||||||
|
this.errorsCount += 1;
|
||||||
|
this.messages.add (message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called by the XML parser to handle fatal errors.
|
||||||
|
* @param ex Parse Excpetion. Contains the error text and the line number.
|
||||||
|
* When a fatal parse error occurs, the parse does not return a document.
|
||||||
|
*/
|
||||||
|
public void fatalError (SAXParseException exception)
|
||||||
|
{
|
||||||
|
String message = "Fatal error at line " + exception.getLineNumber() + " : " + exception.getMessage();
|
||||||
|
|
||||||
|
this.fatalErrorsCount += 1;
|
||||||
|
this.messages.add (message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called by the XML parser to handle warnings.
|
||||||
|
* @param ex Parse Excpetion. Contains the warning text and the line number.
|
||||||
|
*/
|
||||||
|
public void warning(SAXParseException exception)
|
||||||
|
{
|
||||||
|
String message = "Warning at line " + exception.getLineNumber() + " : " + exception.getMessage();
|
||||||
|
|
||||||
|
this.warningCount += 1;
|
||||||
|
this.messages.add (message);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public String toString ()
|
||||||
|
{
|
||||||
|
StringBuffer result;
|
||||||
|
|
||||||
|
result = new StringBuffer ();
|
||||||
|
|
||||||
|
for (String message : messages)
|
||||||
|
{
|
||||||
|
result.append (message);
|
||||||
|
result.append ('\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result.toString ());
|
||||||
|
}
|
||||||
|
}
|
1029
src/xid/Presenter.java
Normal file
1029
src/xid/Presenter.java
Normal file
File diff suppressed because it is too large
Load diff
110
src/xid/TagData.java
Normal file
110
src/xid/TagData.java
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
package xid;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TagData class is used to hold application data and
|
||||||
|
* the business logic that operates on the data.
|
||||||
|
*
|
||||||
|
* The only requirement of a TagData class is that it must implement a
|
||||||
|
* display method. The display method must return a text representation
|
||||||
|
* of the data, suitable for display in a web page.
|
||||||
|
*
|
||||||
|
* XID provides a User Input TagData, Text TagData and ...
|
||||||
|
* application may also implement it's own TagData classes.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public abstract class TagData implements Serializable
|
||||||
|
{
|
||||||
|
public enum MODE {REPLACE, APPEND, IGNORE};
|
||||||
|
|
||||||
|
protected Attributes attributes;
|
||||||
|
protected boolean excludeSection;
|
||||||
|
protected MODE displayMode = MODE.REPLACE;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public TagData ()
|
||||||
|
{
|
||||||
|
attributes = null;
|
||||||
|
excludeSection = false;
|
||||||
|
displayMode = MODE.REPLACE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public abstract String display();
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setDisplayMode(MODE displayMode)
|
||||||
|
{
|
||||||
|
this.displayMode = displayMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public MODE getDisplayMode()
|
||||||
|
{
|
||||||
|
MODE result;
|
||||||
|
|
||||||
|
result = this.displayMode;
|
||||||
|
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ??
|
||||||
|
*/
|
||||||
|
public String getValue()
|
||||||
|
{
|
||||||
|
return display();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public Attributes getAttributes ()
|
||||||
|
{
|
||||||
|
Attributes result;
|
||||||
|
|
||||||
|
if (this.attributes == null)
|
||||||
|
{
|
||||||
|
this.attributes = new Attributes ();
|
||||||
|
}
|
||||||
|
|
||||||
|
result = this.attributes;
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setExcludeSection(boolean excludeSection)
|
||||||
|
{
|
||||||
|
this.excludeSection = excludeSection;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public boolean getExcludeSection()
|
||||||
|
{
|
||||||
|
return excludeSection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
47
src/xid/TagsData.java
Normal file
47
src/xid/TagsData.java
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
package xid;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class TagsData extends HashMap<String, TagData>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public TagsData ()
|
||||||
|
{
|
||||||
|
super ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setId (String id, TagData data)
|
||||||
|
{
|
||||||
|
this.put (id, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public TagData getId (String id)
|
||||||
|
{
|
||||||
|
TagData result;
|
||||||
|
|
||||||
|
if (this.containsKey (id))
|
||||||
|
{
|
||||||
|
result = this.get (id);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
}
|
91
src/xid/TextTagData.java
Normal file
91
src/xid/TextTagData.java
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
package xid;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class can be used to set up text for display.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class TextTagData extends TagData implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = -4117726979708043231L;
|
||||||
|
|
||||||
|
protected String text;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a TextTagData with the text supplied.
|
||||||
|
*
|
||||||
|
* @param text The text to be displayed.
|
||||||
|
*/
|
||||||
|
public TextTagData (String text)
|
||||||
|
{
|
||||||
|
super ();
|
||||||
|
this.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public TextTagData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
this.text = "";
|
||||||
|
this.displayMode = MODE.IGNORE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method will be called by the View when it encounters
|
||||||
|
* an id for a TextTagData object.
|
||||||
|
*/
|
||||||
|
public String display ()
|
||||||
|
{
|
||||||
|
String result;
|
||||||
|
|
||||||
|
if (text == null)
|
||||||
|
{
|
||||||
|
result = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = this.text;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows the text content to be changed.
|
||||||
|
* @param text
|
||||||
|
*/
|
||||||
|
public void setText (String text)
|
||||||
|
{
|
||||||
|
this.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the value as an int.
|
||||||
|
*
|
||||||
|
* @return The users input as an int or -1 if not a valid number.
|
||||||
|
*/
|
||||||
|
public int getValueAsInt()
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = Integer.parseInt(text);
|
||||||
|
}
|
||||||
|
catch (NumberFormatException e)
|
||||||
|
{
|
||||||
|
result = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
}
|
79
src/xid/testXid.html
Normal file
79
src/xid/testXid.html
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: No id attribute
|
||||||
|
XHTML: Hello <b title="a">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b title="a">world</b>.
|
||||||
|
|
||||||
|
Test 02: id attribute with empty model
|
||||||
|
XHTML: Hello <b id="test02-original" title="b">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b id="test02" title="b">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 03: model changing the text
|
||||||
|
XHTML: Hello <b id="test03-original" title="c">world</b>.
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
text.setText ("mummy");
|
||||||
|
datas.put ("test03", text);
|
||||||
|
Result: Hello <b id="test03" title="c">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 04: model changing title
|
||||||
|
XHTML: Hello <b id="test04-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
Result: Hello <b id="test04" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 05: model adding style attributes
|
||||||
|
XHTML: Hello <b id="test05-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test05", text);
|
||||||
|
Result: Hello <b id="test05" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 06: model appending style attributes
|
||||||
|
XHTML: Hello <b id="test06-original" title="d" style="background:yellow;">world</b>.
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
Result: Hello <b id="test06" title="d" style="background:yellow;">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 07: image
|
||||||
|
XHTML: A picture <img id="test07-original" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
Result: A picture <img id="test07" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
|
||||||
|
|
||||||
|
Test 08: xhtml source contains no display order in a tag.
|
||||||
|
XHTML: Hello <b class="xid:nodisplay_">you</b> there.
|
||||||
|
Result: Hello <b class="xid:nodisplay">you</b> there.
|
||||||
|
|
||||||
|
|
||||||
|
Test 09: dynamic addition of the nodisplay order.
|
||||||
|
XHTML: Hello <b id="test09-original">you</b> there.
|
||||||
|
Result: Hello <b id="test09">you</b> there.
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
69
src/xid/testXid.t
Normal file
69
src/xid/testXid.t
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: No id attribute
|
||||||
|
XHTML: Hello <b title="a">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b title="a">world</b>.
|
||||||
|
|
||||||
|
Test 02: id attribute with empty model
|
||||||
|
XHTML: Hello <b id="test02-original" title="b">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b id="test02" title="b">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 03: model changing the text
|
||||||
|
XHTML: Hello <b id="test03-original" title="c">world</b>.
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
text.setText ("mummy");
|
||||||
|
datas.put ("test03", text);
|
||||||
|
Result: Hello <b id="test03" title="c">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 04: model changing title
|
||||||
|
XHTML: Hello <b id="test04-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
Result: Hello <b id="test04" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 05: model adding style attributes
|
||||||
|
XHTML: Hello <b id="test05-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test05", text);
|
||||||
|
Result: Hello <b id="test05" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 06: model appending style attributes
|
||||||
|
XHTML: Hello <b id="test06-original" title="d" style="background:yellow;">world</b>.
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
Result: Hello <b id="test06" title="d" style="background:yellow;">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 07: image
|
||||||
|
XHTML: A picture <img id="test07-original" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
Result: A picture <img id="test07" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
196
src/xid/xhtml-lat1.ent
Normal file
196
src/xid/xhtml-lat1.ent
Normal file
|
@ -0,0 +1,196 @@
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLlat1 PUBLIC
|
||||||
|
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
|
||||||
|
%HTMLlat1;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!ENTITY nbsp " "> <!-- no-break space = non-breaking space,
|
||||||
|
U+00A0 ISOnum -->
|
||||||
|
<!ENTITY iexcl "¡"> <!-- inverted exclamation mark, U+00A1 ISOnum -->
|
||||||
|
<!ENTITY cent "¢"> <!-- cent sign, U+00A2 ISOnum -->
|
||||||
|
<!ENTITY pound "£"> <!-- pound sign, U+00A3 ISOnum -->
|
||||||
|
<!ENTITY curren "¤"> <!-- currency sign, U+00A4 ISOnum -->
|
||||||
|
<!ENTITY yen "¥"> <!-- yen sign = yuan sign, U+00A5 ISOnum -->
|
||||||
|
<!ENTITY brvbar "¦"> <!-- broken bar = broken vertical bar,
|
||||||
|
U+00A6 ISOnum -->
|
||||||
|
<!ENTITY sect "§"> <!-- section sign, U+00A7 ISOnum -->
|
||||||
|
<!ENTITY uml "¨"> <!-- diaeresis = spacing diaeresis,
|
||||||
|
U+00A8 ISOdia -->
|
||||||
|
<!ENTITY copy "©"> <!-- copyright sign, U+00A9 ISOnum -->
|
||||||
|
<!ENTITY ordf "ª"> <!-- feminine ordinal indicator, U+00AA ISOnum -->
|
||||||
|
<!ENTITY laquo "«"> <!-- left-pointing double angle quotation mark
|
||||||
|
= left pointing guillemet, U+00AB ISOnum -->
|
||||||
|
<!ENTITY not "¬"> <!-- not sign = angled dash,
|
||||||
|
U+00AC ISOnum -->
|
||||||
|
<!ENTITY shy "­"> <!-- soft hyphen = discretionary hyphen,
|
||||||
|
U+00AD ISOnum -->
|
||||||
|
<!ENTITY reg "®"> <!-- registered sign = registered trade mark sign,
|
||||||
|
U+00AE ISOnum -->
|
||||||
|
<!ENTITY macr "¯"> <!-- macron = spacing macron = overline
|
||||||
|
= APL overbar, U+00AF ISOdia -->
|
||||||
|
<!ENTITY deg "°"> <!-- degree sign, U+00B0 ISOnum -->
|
||||||
|
<!ENTITY plusmn "±"> <!-- plus-minus sign = plus-or-minus sign,
|
||||||
|
U+00B1 ISOnum -->
|
||||||
|
<!ENTITY sup2 "²"> <!-- superscript two = superscript digit two
|
||||||
|
= squared, U+00B2 ISOnum -->
|
||||||
|
<!ENTITY sup3 "³"> <!-- superscript three = superscript digit three
|
||||||
|
= cubed, U+00B3 ISOnum -->
|
||||||
|
<!ENTITY acute "´"> <!-- acute accent = spacing acute,
|
||||||
|
U+00B4 ISOdia -->
|
||||||
|
<!ENTITY micro "µ"> <!-- micro sign, U+00B5 ISOnum -->
|
||||||
|
<!ENTITY para "¶"> <!-- pilcrow sign = paragraph sign,
|
||||||
|
U+00B6 ISOnum -->
|
||||||
|
<!ENTITY middot "·"> <!-- middle dot = Georgian comma
|
||||||
|
= Greek middle dot, U+00B7 ISOnum -->
|
||||||
|
<!ENTITY cedil "¸"> <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
|
||||||
|
<!ENTITY sup1 "¹"> <!-- superscript one = superscript digit one,
|
||||||
|
U+00B9 ISOnum -->
|
||||||
|
<!ENTITY ordm "º"> <!-- masculine ordinal indicator,
|
||||||
|
U+00BA ISOnum -->
|
||||||
|
<!ENTITY raquo "»"> <!-- right-pointing double angle quotation mark
|
||||||
|
= right pointing guillemet, U+00BB ISOnum -->
|
||||||
|
<!ENTITY frac14 "¼"> <!-- vulgar fraction one quarter
|
||||||
|
= fraction one quarter, U+00BC ISOnum -->
|
||||||
|
<!ENTITY frac12 "½"> <!-- vulgar fraction one half
|
||||||
|
= fraction one half, U+00BD ISOnum -->
|
||||||
|
<!ENTITY frac34 "¾"> <!-- vulgar fraction three quarters
|
||||||
|
= fraction three quarters, U+00BE ISOnum -->
|
||||||
|
<!ENTITY iquest "¿"> <!-- inverted question mark
|
||||||
|
= turned question mark, U+00BF ISOnum -->
|
||||||
|
<!ENTITY Agrave "À"> <!-- latin capital letter A with grave
|
||||||
|
= latin capital letter A grave,
|
||||||
|
U+00C0 ISOlat1 -->
|
||||||
|
<!ENTITY Aacute "Á"> <!-- latin capital letter A with acute,
|
||||||
|
U+00C1 ISOlat1 -->
|
||||||
|
<!ENTITY Acirc "Â"> <!-- latin capital letter A with circumflex,
|
||||||
|
U+00C2 ISOlat1 -->
|
||||||
|
<!ENTITY Atilde "Ã"> <!-- latin capital letter A with tilde,
|
||||||
|
U+00C3 ISOlat1 -->
|
||||||
|
<!ENTITY Auml "Ä"> <!-- latin capital letter A with diaeresis,
|
||||||
|
U+00C4 ISOlat1 -->
|
||||||
|
<!ENTITY Aring "Å"> <!-- latin capital letter A with ring above
|
||||||
|
= latin capital letter A ring,
|
||||||
|
U+00C5 ISOlat1 -->
|
||||||
|
<!ENTITY AElig "Æ"> <!-- latin capital letter AE
|
||||||
|
= latin capital ligature AE,
|
||||||
|
U+00C6 ISOlat1 -->
|
||||||
|
<!ENTITY Ccedil "Ç"> <!-- latin capital letter C with cedilla,
|
||||||
|
U+00C7 ISOlat1 -->
|
||||||
|
<!ENTITY Egrave "È"> <!-- latin capital letter E with grave,
|
||||||
|
U+00C8 ISOlat1 -->
|
||||||
|
<!ENTITY Eacute "É"> <!-- latin capital letter E with acute,
|
||||||
|
U+00C9 ISOlat1 -->
|
||||||
|
<!ENTITY Ecirc "Ê"> <!-- latin capital letter E with circumflex,
|
||||||
|
U+00CA ISOlat1 -->
|
||||||
|
<!ENTITY Euml "Ë"> <!-- latin capital letter E with diaeresis,
|
||||||
|
U+00CB ISOlat1 -->
|
||||||
|
<!ENTITY Igrave "Ì"> <!-- latin capital letter I with grave,
|
||||||
|
U+00CC ISOlat1 -->
|
||||||
|
<!ENTITY Iacute "Í"> <!-- latin capital letter I with acute,
|
||||||
|
U+00CD ISOlat1 -->
|
||||||
|
<!ENTITY Icirc "Î"> <!-- latin capital letter I with circumflex,
|
||||||
|
U+00CE ISOlat1 -->
|
||||||
|
<!ENTITY Iuml "Ï"> <!-- latin capital letter I with diaeresis,
|
||||||
|
U+00CF ISOlat1 -->
|
||||||
|
<!ENTITY ETH "Ð"> <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
|
||||||
|
<!ENTITY Ntilde "Ñ"> <!-- latin capital letter N with tilde,
|
||||||
|
U+00D1 ISOlat1 -->
|
||||||
|
<!ENTITY Ograve "Ò"> <!-- latin capital letter O with grave,
|
||||||
|
U+00D2 ISOlat1 -->
|
||||||
|
<!ENTITY Oacute "Ó"> <!-- latin capital letter O with acute,
|
||||||
|
U+00D3 ISOlat1 -->
|
||||||
|
<!ENTITY Ocirc "Ô"> <!-- latin capital letter O with circumflex,
|
||||||
|
U+00D4 ISOlat1 -->
|
||||||
|
<!ENTITY Otilde "Õ"> <!-- latin capital letter O with tilde,
|
||||||
|
U+00D5 ISOlat1 -->
|
||||||
|
<!ENTITY Ouml "Ö"> <!-- latin capital letter O with diaeresis,
|
||||||
|
U+00D6 ISOlat1 -->
|
||||||
|
<!ENTITY times "×"> <!-- multiplication sign, U+00D7 ISOnum -->
|
||||||
|
<!ENTITY Oslash "Ø"> <!-- latin capital letter O with stroke
|
||||||
|
= latin capital letter O slash,
|
||||||
|
U+00D8 ISOlat1 -->
|
||||||
|
<!ENTITY Ugrave "Ù"> <!-- latin capital letter U with grave,
|
||||||
|
U+00D9 ISOlat1 -->
|
||||||
|
<!ENTITY Uacute "Ú"> <!-- latin capital letter U with acute,
|
||||||
|
U+00DA ISOlat1 -->
|
||||||
|
<!ENTITY Ucirc "Û"> <!-- latin capital letter U with circumflex,
|
||||||
|
U+00DB ISOlat1 -->
|
||||||
|
<!ENTITY Uuml "Ü"> <!-- latin capital letter U with diaeresis,
|
||||||
|
U+00DC ISOlat1 -->
|
||||||
|
<!ENTITY Yacute "Ý"> <!-- latin capital letter Y with acute,
|
||||||
|
U+00DD ISOlat1 -->
|
||||||
|
<!ENTITY THORN "Þ"> <!-- latin capital letter THORN,
|
||||||
|
U+00DE ISOlat1 -->
|
||||||
|
<!ENTITY szlig "ß"> <!-- latin small letter sharp s = ess-zed,
|
||||||
|
U+00DF ISOlat1 -->
|
||||||
|
<!ENTITY agrave "à"> <!-- latin small letter a with grave
|
||||||
|
= latin small letter a grave,
|
||||||
|
U+00E0 ISOlat1 -->
|
||||||
|
<!ENTITY aacute "á"> <!-- latin small letter a with acute,
|
||||||
|
U+00E1 ISOlat1 -->
|
||||||
|
<!ENTITY acirc "â"> <!-- latin small letter a with circumflex,
|
||||||
|
U+00E2 ISOlat1 -->
|
||||||
|
<!ENTITY atilde "ã"> <!-- latin small letter a with tilde,
|
||||||
|
U+00E3 ISOlat1 -->
|
||||||
|
<!ENTITY auml "ä"> <!-- latin small letter a with diaeresis,
|
||||||
|
U+00E4 ISOlat1 -->
|
||||||
|
<!ENTITY aring "å"> <!-- latin small letter a with ring above
|
||||||
|
= latin small letter a ring,
|
||||||
|
U+00E5 ISOlat1 -->
|
||||||
|
<!ENTITY aelig "æ"> <!-- latin small letter ae
|
||||||
|
= latin small ligature ae, U+00E6 ISOlat1 -->
|
||||||
|
<!ENTITY ccedil "ç"> <!-- latin small letter c with cedilla,
|
||||||
|
U+00E7 ISOlat1 -->
|
||||||
|
<!ENTITY egrave "è"> <!-- latin small letter e with grave,
|
||||||
|
U+00E8 ISOlat1 -->
|
||||||
|
<!ENTITY eacute "é"> <!-- latin small letter e with acute,
|
||||||
|
U+00E9 ISOlat1 -->
|
||||||
|
<!ENTITY ecirc "ê"> <!-- latin small letter e with circumflex,
|
||||||
|
U+00EA ISOlat1 -->
|
||||||
|
<!ENTITY euml "ë"> <!-- latin small letter e with diaeresis,
|
||||||
|
U+00EB ISOlat1 -->
|
||||||
|
<!ENTITY igrave "ì"> <!-- latin small letter i with grave,
|
||||||
|
U+00EC ISOlat1 -->
|
||||||
|
<!ENTITY iacute "í"> <!-- latin small letter i with acute,
|
||||||
|
U+00ED ISOlat1 -->
|
||||||
|
<!ENTITY icirc "î"> <!-- latin small letter i with circumflex,
|
||||||
|
U+00EE ISOlat1 -->
|
||||||
|
<!ENTITY iuml "ï"> <!-- latin small letter i with diaeresis,
|
||||||
|
U+00EF ISOlat1 -->
|
||||||
|
<!ENTITY eth "ð"> <!-- latin small letter eth, U+00F0 ISOlat1 -->
|
||||||
|
<!ENTITY ntilde "ñ"> <!-- latin small letter n with tilde,
|
||||||
|
U+00F1 ISOlat1 -->
|
||||||
|
<!ENTITY ograve "ò"> <!-- latin small letter o with grave,
|
||||||
|
U+00F2 ISOlat1 -->
|
||||||
|
<!ENTITY oacute "ó"> <!-- latin small letter o with acute,
|
||||||
|
U+00F3 ISOlat1 -->
|
||||||
|
<!ENTITY ocirc "ô"> <!-- latin small letter o with circumflex,
|
||||||
|
U+00F4 ISOlat1 -->
|
||||||
|
<!ENTITY otilde "õ"> <!-- latin small letter o with tilde,
|
||||||
|
U+00F5 ISOlat1 -->
|
||||||
|
<!ENTITY ouml "ö"> <!-- latin small letter o with diaeresis,
|
||||||
|
U+00F6 ISOlat1 -->
|
||||||
|
<!ENTITY divide "÷"> <!-- division sign, U+00F7 ISOnum -->
|
||||||
|
<!ENTITY oslash "ø"> <!-- latin small letter o with stroke,
|
||||||
|
= latin small letter o slash,
|
||||||
|
U+00F8 ISOlat1 -->
|
||||||
|
<!ENTITY ugrave "ù"> <!-- latin small letter u with grave,
|
||||||
|
U+00F9 ISOlat1 -->
|
||||||
|
<!ENTITY uacute "ú"> <!-- latin small letter u with acute,
|
||||||
|
U+00FA ISOlat1 -->
|
||||||
|
<!ENTITY ucirc "û"> <!-- latin small letter u with circumflex,
|
||||||
|
U+00FB ISOlat1 -->
|
||||||
|
<!ENTITY uuml "ü"> <!-- latin small letter u with diaeresis,
|
||||||
|
U+00FC ISOlat1 -->
|
||||||
|
<!ENTITY yacute "ý"> <!-- latin small letter y with acute,
|
||||||
|
U+00FD ISOlat1 -->
|
||||||
|
<!ENTITY thorn "þ"> <!-- latin small letter thorn,
|
||||||
|
U+00FE ISOlat1 -->
|
||||||
|
<!ENTITY yuml "ÿ"> <!-- latin small letter y with diaeresis,
|
||||||
|
U+00FF ISOlat1 -->
|
82
src/xid/xhtml-special.ent
Normal file
82
src/xid/xhtml-special.ent
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
<!-- Special characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLspecial PUBLIC
|
||||||
|
"-//W3C//ENTITIES Special for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
|
||||||
|
%HTMLspecial;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- C0 Controls and Basic Latin -->
|
||||||
|
|
||||||
|
<!-- CB 10/03/2003 Commented out as these are already defined in XML -->
|
||||||
|
<!-- ENTITY quot """> quotation mark, U+0022 ISOnum -->
|
||||||
|
<!-- ENTITY amp "&#38;"> ampersand, U+0026 ISOnum -->
|
||||||
|
<!-- ENTITY lt "&#60;"> less-than sign, U+003C ISOnum -->
|
||||||
|
<!-- ENTITY gt ">"> greater-than sign, U+003E ISOnum -->
|
||||||
|
<!-- ENTITY apos "'"> apostrophe = APL quote, U+0027 ISOnum -->
|
||||||
|
|
||||||
|
<!-- Latin Extended-A -->
|
||||||
|
<!ENTITY OElig "Œ"> <!-- latin capital ligature OE,
|
||||||
|
U+0152 ISOlat2 -->
|
||||||
|
<!ENTITY oelig "œ"> <!-- latin small ligature oe, U+0153 ISOlat2 -->
|
||||||
|
<!-- ligature is a misnomer, this is a separate character in some languages -->
|
||||||
|
<!ENTITY Scaron "Š"> <!-- latin capital letter S with caron,
|
||||||
|
U+0160 ISOlat2 -->
|
||||||
|
<!ENTITY scaron "š"> <!-- latin small letter s with caron,
|
||||||
|
U+0161 ISOlat2 -->
|
||||||
|
<!ENTITY Yuml "Ÿ"> <!-- latin capital letter Y with diaeresis,
|
||||||
|
U+0178 ISOlat2 -->
|
||||||
|
|
||||||
|
<!-- Spacing Modifier Letters -->
|
||||||
|
<!ENTITY circ "ˆ"> <!-- modifier letter circumflex accent,
|
||||||
|
U+02C6 ISOpub -->
|
||||||
|
<!ENTITY tilde "˜"> <!-- small tilde, U+02DC ISOdia -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY ensp " "> <!-- en space, U+2002 ISOpub -->
|
||||||
|
<!ENTITY emsp " "> <!-- em space, U+2003 ISOpub -->
|
||||||
|
<!ENTITY thinsp " "> <!-- thin space, U+2009 ISOpub -->
|
||||||
|
<!ENTITY zwnj "‌"> <!-- zero width non-joiner,
|
||||||
|
U+200C NEW RFC 2070 -->
|
||||||
|
<!ENTITY zwj "‍"> <!-- zero width joiner, U+200D NEW RFC 2070 -->
|
||||||
|
<!ENTITY lrm "‎"> <!-- left-to-right mark, U+200E NEW RFC 2070 -->
|
||||||
|
<!ENTITY rlm "‏"> <!-- right-to-left mark, U+200F NEW RFC 2070 -->
|
||||||
|
<!ENTITY ndash "–"> <!-- en dash, U+2013 ISOpub -->
|
||||||
|
<!ENTITY mdash "—"> <!-- em dash, U+2014 ISOpub -->
|
||||||
|
<!ENTITY lsquo "‘"> <!-- left single quotation mark,
|
||||||
|
U+2018 ISOnum -->
|
||||||
|
<!ENTITY rsquo "’"> <!-- right single quotation mark,
|
||||||
|
U+2019 ISOnum -->
|
||||||
|
<!ENTITY sbquo "‚"> <!-- single low-9 quotation mark, U+201A NEW -->
|
||||||
|
<!ENTITY ldquo "“"> <!-- left double quotation mark,
|
||||||
|
U+201C ISOnum -->
|
||||||
|
<!ENTITY rdquo "”"> <!-- right double quotation mark,
|
||||||
|
U+201D ISOnum -->
|
||||||
|
<!ENTITY bdquo "„"> <!-- double low-9 quotation mark, U+201E NEW -->
|
||||||
|
<!ENTITY dagger "†"> <!-- dagger, U+2020 ISOpub -->
|
||||||
|
<!ENTITY Dagger "‡"> <!-- double dagger, U+2021 ISOpub -->
|
||||||
|
<!ENTITY permil "‰"> <!-- per mille sign, U+2030 ISOtech -->
|
||||||
|
<!ENTITY lsaquo "‹"> <!-- single left-pointing angle quotation mark,
|
||||||
|
U+2039 ISO proposed -->
|
||||||
|
<!-- lsaquo is proposed but not yet ISO standardized -->
|
||||||
|
<!ENTITY rsaquo "›"> <!-- single right-pointing angle quotation mark,
|
||||||
|
U+203A ISO proposed -->
|
||||||
|
<!-- rsaquo is proposed but not yet ISO standardized -->
|
||||||
|
|
||||||
|
<!-- Currency Symbols -->
|
||||||
|
<!ENTITY euro "€"> <!-- euro sign, U+20AC NEW -->
|
237
src/xid/xhtml-symbol.ent
Normal file
237
src/xid/xhtml-symbol.ent
Normal file
|
@ -0,0 +1,237 @@
|
||||||
|
<!-- Mathematical, Greek and Symbolic characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLsymbol PUBLIC
|
||||||
|
"-//W3C//ENTITIES Symbols for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
|
||||||
|
%HTMLsymbol;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Latin Extended-B -->
|
||||||
|
<!ENTITY fnof "ƒ"> <!-- latin small letter f with hook = function
|
||||||
|
= florin, U+0192 ISOtech -->
|
||||||
|
|
||||||
|
<!-- Greek -->
|
||||||
|
<!ENTITY Alpha "Α"> <!-- greek capital letter alpha, U+0391 -->
|
||||||
|
<!ENTITY Beta "Β"> <!-- greek capital letter beta, U+0392 -->
|
||||||
|
<!ENTITY Gamma "Γ"> <!-- greek capital letter gamma,
|
||||||
|
U+0393 ISOgrk3 -->
|
||||||
|
<!ENTITY Delta "Δ"> <!-- greek capital letter delta,
|
||||||
|
U+0394 ISOgrk3 -->
|
||||||
|
<!ENTITY Epsilon "Ε"> <!-- greek capital letter epsilon, U+0395 -->
|
||||||
|
<!ENTITY Zeta "Ζ"> <!-- greek capital letter zeta, U+0396 -->
|
||||||
|
<!ENTITY Eta "Η"> <!-- greek capital letter eta, U+0397 -->
|
||||||
|
<!ENTITY Theta "Θ"> <!-- greek capital letter theta,
|
||||||
|
U+0398 ISOgrk3 -->
|
||||||
|
<!ENTITY Iota "Ι"> <!-- greek capital letter iota, U+0399 -->
|
||||||
|
<!ENTITY Kappa "Κ"> <!-- greek capital letter kappa, U+039A -->
|
||||||
|
<!ENTITY Lambda "Λ"> <!-- greek capital letter lamda,
|
||||||
|
U+039B ISOgrk3 -->
|
||||||
|
<!ENTITY Mu "Μ"> <!-- greek capital letter mu, U+039C -->
|
||||||
|
<!ENTITY Nu "Ν"> <!-- greek capital letter nu, U+039D -->
|
||||||
|
<!ENTITY Xi "Ξ"> <!-- greek capital letter xi, U+039E ISOgrk3 -->
|
||||||
|
<!ENTITY Omicron "Ο"> <!-- greek capital letter omicron, U+039F -->
|
||||||
|
<!ENTITY Pi "Π"> <!-- greek capital letter pi, U+03A0 ISOgrk3 -->
|
||||||
|
<!ENTITY Rho "Ρ"> <!-- greek capital letter rho, U+03A1 -->
|
||||||
|
<!-- there is no Sigmaf, and no U+03A2 character either -->
|
||||||
|
<!ENTITY Sigma "Σ"> <!-- greek capital letter sigma,
|
||||||
|
U+03A3 ISOgrk3 -->
|
||||||
|
<!ENTITY Tau "Τ"> <!-- greek capital letter tau, U+03A4 -->
|
||||||
|
<!ENTITY Upsilon "Υ"> <!-- greek capital letter upsilon,
|
||||||
|
U+03A5 ISOgrk3 -->
|
||||||
|
<!ENTITY Phi "Φ"> <!-- greek capital letter phi,
|
||||||
|
U+03A6 ISOgrk3 -->
|
||||||
|
<!ENTITY Chi "Χ"> <!-- greek capital letter chi, U+03A7 -->
|
||||||
|
<!ENTITY Psi "Ψ"> <!-- greek capital letter psi,
|
||||||
|
U+03A8 ISOgrk3 -->
|
||||||
|
<!ENTITY Omega "Ω"> <!-- greek capital letter omega,
|
||||||
|
U+03A9 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!ENTITY alpha "α"> <!-- greek small letter alpha,
|
||||||
|
U+03B1 ISOgrk3 -->
|
||||||
|
<!ENTITY beta "β"> <!-- greek small letter beta, U+03B2 ISOgrk3 -->
|
||||||
|
<!ENTITY gamma "γ"> <!-- greek small letter gamma,
|
||||||
|
U+03B3 ISOgrk3 -->
|
||||||
|
<!ENTITY delta "δ"> <!-- greek small letter delta,
|
||||||
|
U+03B4 ISOgrk3 -->
|
||||||
|
<!ENTITY epsilon "ε"> <!-- greek small letter epsilon,
|
||||||
|
U+03B5 ISOgrk3 -->
|
||||||
|
<!ENTITY zeta "ζ"> <!-- greek small letter zeta, U+03B6 ISOgrk3 -->
|
||||||
|
<!ENTITY eta "η"> <!-- greek small letter eta, U+03B7 ISOgrk3 -->
|
||||||
|
<!ENTITY theta "θ"> <!-- greek small letter theta,
|
||||||
|
U+03B8 ISOgrk3 -->
|
||||||
|
<!ENTITY iota "ι"> <!-- greek small letter iota, U+03B9 ISOgrk3 -->
|
||||||
|
<!ENTITY kappa "κ"> <!-- greek small letter kappa,
|
||||||
|
U+03BA ISOgrk3 -->
|
||||||
|
<!ENTITY lambda "λ"> <!-- greek small letter lamda,
|
||||||
|
U+03BB ISOgrk3 -->
|
||||||
|
<!ENTITY mu "μ"> <!-- greek small letter mu, U+03BC ISOgrk3 -->
|
||||||
|
<!ENTITY nu "ν"> <!-- greek small letter nu, U+03BD ISOgrk3 -->
|
||||||
|
<!ENTITY xi "ξ"> <!-- greek small letter xi, U+03BE ISOgrk3 -->
|
||||||
|
<!ENTITY omicron "ο"> <!-- greek small letter omicron, U+03BF NEW -->
|
||||||
|
<!ENTITY pi "π"> <!-- greek small letter pi, U+03C0 ISOgrk3 -->
|
||||||
|
<!ENTITY rho "ρ"> <!-- greek small letter rho, U+03C1 ISOgrk3 -->
|
||||||
|
<!ENTITY sigmaf "ς"> <!-- greek small letter final sigma,
|
||||||
|
U+03C2 ISOgrk3 -->
|
||||||
|
<!ENTITY sigma "σ"> <!-- greek small letter sigma,
|
||||||
|
U+03C3 ISOgrk3 -->
|
||||||
|
<!ENTITY tau "τ"> <!-- greek small letter tau, U+03C4 ISOgrk3 -->
|
||||||
|
<!ENTITY upsilon "υ"> <!-- greek small letter upsilon,
|
||||||
|
U+03C5 ISOgrk3 -->
|
||||||
|
<!ENTITY phi "φ"> <!-- greek small letter phi, U+03C6 ISOgrk3 -->
|
||||||
|
<!ENTITY chi "χ"> <!-- greek small letter chi, U+03C7 ISOgrk3 -->
|
||||||
|
<!ENTITY psi "ψ"> <!-- greek small letter psi, U+03C8 ISOgrk3 -->
|
||||||
|
<!ENTITY omega "ω"> <!-- greek small letter omega,
|
||||||
|
U+03C9 ISOgrk3 -->
|
||||||
|
<!ENTITY thetasym "ϑ"> <!-- greek theta symbol,
|
||||||
|
U+03D1 NEW -->
|
||||||
|
<!ENTITY upsih "ϒ"> <!-- greek upsilon with hook symbol,
|
||||||
|
U+03D2 NEW -->
|
||||||
|
<!ENTITY piv "ϖ"> <!-- greek pi symbol, U+03D6 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY bull "•"> <!-- bullet = black small circle,
|
||||||
|
U+2022 ISOpub -->
|
||||||
|
<!-- bullet is NOT the same as bullet operator, U+2219 -->
|
||||||
|
<!ENTITY hellip "…"> <!-- horizontal ellipsis = three dot leader,
|
||||||
|
U+2026 ISOpub -->
|
||||||
|
<!ENTITY prime "′"> <!-- prime = minutes = feet, U+2032 ISOtech -->
|
||||||
|
<!ENTITY Prime "″"> <!-- double prime = seconds = inches,
|
||||||
|
U+2033 ISOtech -->
|
||||||
|
<!ENTITY oline "‾"> <!-- overline = spacing overscore,
|
||||||
|
U+203E NEW -->
|
||||||
|
<!ENTITY frasl "⁄"> <!-- fraction slash, U+2044 NEW -->
|
||||||
|
|
||||||
|
<!-- Letterlike Symbols -->
|
||||||
|
<!ENTITY weierp "℘"> <!-- script capital P = power set
|
||||||
|
= Weierstrass p, U+2118 ISOamso -->
|
||||||
|
<!ENTITY image "ℑ"> <!-- black-letter capital I = imaginary part,
|
||||||
|
U+2111 ISOamso -->
|
||||||
|
<!ENTITY real "ℜ"> <!-- black-letter capital R = real part symbol,
|
||||||
|
U+211C ISOamso -->
|
||||||
|
<!ENTITY trade "™"> <!-- trade mark sign, U+2122 ISOnum -->
|
||||||
|
<!ENTITY alefsym "ℵ"> <!-- alef symbol = first transfinite cardinal,
|
||||||
|
U+2135 NEW -->
|
||||||
|
<!-- alef symbol is NOT the same as hebrew letter alef,
|
||||||
|
U+05D0 although the same glyph could be used to depict both characters -->
|
||||||
|
|
||||||
|
<!-- Arrows -->
|
||||||
|
<!ENTITY larr "←"> <!-- leftwards arrow, U+2190 ISOnum -->
|
||||||
|
<!ENTITY uarr "↑"> <!-- upwards arrow, U+2191 ISOnum-->
|
||||||
|
<!ENTITY rarr "→"> <!-- rightwards arrow, U+2192 ISOnum -->
|
||||||
|
<!ENTITY darr "↓"> <!-- downwards arrow, U+2193 ISOnum -->
|
||||||
|
<!ENTITY harr "↔"> <!-- left right arrow, U+2194 ISOamsa -->
|
||||||
|
<!ENTITY crarr "↵"> <!-- downwards arrow with corner leftwards
|
||||||
|
= carriage return, U+21B5 NEW -->
|
||||||
|
<!ENTITY lArr "⇐"> <!-- leftwards double arrow, U+21D0 ISOtech -->
|
||||||
|
<!-- Unicode does not say that lArr is the same as the 'is implied by' arrow
|
||||||
|
but also does not have any other character for that function. So lArr can
|
||||||
|
be used for 'is implied by' as ISOtech suggests -->
|
||||||
|
<!ENTITY uArr "⇑"> <!-- upwards double arrow, U+21D1 ISOamsa -->
|
||||||
|
<!ENTITY rArr "⇒"> <!-- rightwards double arrow,
|
||||||
|
U+21D2 ISOtech -->
|
||||||
|
<!-- Unicode does not say this is the 'implies' character but does not have
|
||||||
|
another character with this function so rArr can be used for 'implies'
|
||||||
|
as ISOtech suggests -->
|
||||||
|
<!ENTITY dArr "⇓"> <!-- downwards double arrow, U+21D3 ISOamsa -->
|
||||||
|
<!ENTITY hArr "⇔"> <!-- left right double arrow,
|
||||||
|
U+21D4 ISOamsa -->
|
||||||
|
|
||||||
|
<!-- Mathematical Operators -->
|
||||||
|
<!ENTITY forall "∀"> <!-- for all, U+2200 ISOtech -->
|
||||||
|
<!ENTITY part "∂"> <!-- partial differential, U+2202 ISOtech -->
|
||||||
|
<!ENTITY exist "∃"> <!-- there exists, U+2203 ISOtech -->
|
||||||
|
<!ENTITY empty "∅"> <!-- empty set = null set, U+2205 ISOamso -->
|
||||||
|
<!ENTITY nabla "∇"> <!-- nabla = backward difference,
|
||||||
|
U+2207 ISOtech -->
|
||||||
|
<!ENTITY isin "∈"> <!-- element of, U+2208 ISOtech -->
|
||||||
|
<!ENTITY notin "∉"> <!-- not an element of, U+2209 ISOtech -->
|
||||||
|
<!ENTITY ni "∋"> <!-- contains as member, U+220B ISOtech -->
|
||||||
|
<!ENTITY prod "∏"> <!-- n-ary product = product sign,
|
||||||
|
U+220F ISOamsb -->
|
||||||
|
<!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
|
||||||
|
the same glyph might be used for both -->
|
||||||
|
<!ENTITY sum "∑"> <!-- n-ary summation, U+2211 ISOamsb -->
|
||||||
|
<!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
|
||||||
|
though the same glyph might be used for both -->
|
||||||
|
<!ENTITY minus "−"> <!-- minus sign, U+2212 ISOtech -->
|
||||||
|
<!ENTITY lowast "∗"> <!-- asterisk operator, U+2217 ISOtech -->
|
||||||
|
<!ENTITY radic "√"> <!-- square root = radical sign,
|
||||||
|
U+221A ISOtech -->
|
||||||
|
<!ENTITY prop "∝"> <!-- proportional to, U+221D ISOtech -->
|
||||||
|
<!ENTITY infin "∞"> <!-- infinity, U+221E ISOtech -->
|
||||||
|
<!ENTITY ang "∠"> <!-- angle, U+2220 ISOamso -->
|
||||||
|
<!ENTITY and "∧"> <!-- logical and = wedge, U+2227 ISOtech -->
|
||||||
|
<!ENTITY or "∨"> <!-- logical or = vee, U+2228 ISOtech -->
|
||||||
|
<!ENTITY cap "∩"> <!-- intersection = cap, U+2229 ISOtech -->
|
||||||
|
<!ENTITY cup "∪"> <!-- union = cup, U+222A ISOtech -->
|
||||||
|
<!ENTITY int "∫"> <!-- integral, U+222B ISOtech -->
|
||||||
|
<!ENTITY there4 "∴"> <!-- therefore, U+2234 ISOtech -->
|
||||||
|
<!ENTITY sim "∼"> <!-- tilde operator = varies with = similar to,
|
||||||
|
U+223C ISOtech -->
|
||||||
|
<!-- tilde operator is NOT the same character as the tilde, U+007E,
|
||||||
|
although the same glyph might be used to represent both -->
|
||||||
|
<!ENTITY cong "≅"> <!-- approximately equal to, U+2245 ISOtech -->
|
||||||
|
<!ENTITY asymp "≈"> <!-- almost equal to = asymptotic to,
|
||||||
|
U+2248 ISOamsr -->
|
||||||
|
<!ENTITY ne "≠"> <!-- not equal to, U+2260 ISOtech -->
|
||||||
|
<!ENTITY equiv "≡"> <!-- identical to, U+2261 ISOtech -->
|
||||||
|
<!ENTITY le "≤"> <!-- less-than or equal to, U+2264 ISOtech -->
|
||||||
|
<!ENTITY ge "≥"> <!-- greater-than or equal to,
|
||||||
|
U+2265 ISOtech -->
|
||||||
|
<!ENTITY sub "⊂"> <!-- subset of, U+2282 ISOtech -->
|
||||||
|
<!ENTITY sup "⊃"> <!-- superset of, U+2283 ISOtech -->
|
||||||
|
<!ENTITY nsub "⊄"> <!-- not a subset of, U+2284 ISOamsn -->
|
||||||
|
<!ENTITY sube "⊆"> <!-- subset of or equal to, U+2286 ISOtech -->
|
||||||
|
<!ENTITY supe "⊇"> <!-- superset of or equal to,
|
||||||
|
U+2287 ISOtech -->
|
||||||
|
<!ENTITY oplus "⊕"> <!-- circled plus = direct sum,
|
||||||
|
U+2295 ISOamsb -->
|
||||||
|
<!ENTITY otimes "⊗"> <!-- circled times = vector product,
|
||||||
|
U+2297 ISOamsb -->
|
||||||
|
<!ENTITY perp "⊥"> <!-- up tack = orthogonal to = perpendicular,
|
||||||
|
U+22A5 ISOtech -->
|
||||||
|
<!ENTITY sdot "⋅"> <!-- dot operator, U+22C5 ISOamsb -->
|
||||||
|
<!-- dot operator is NOT the same character as U+00B7 middle dot -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Technical -->
|
||||||
|
<!ENTITY lceil "⌈"> <!-- left ceiling = APL upstile,
|
||||||
|
U+2308 ISOamsc -->
|
||||||
|
<!ENTITY rceil "⌉"> <!-- right ceiling, U+2309 ISOamsc -->
|
||||||
|
<!ENTITY lfloor "⌊"> <!-- left floor = APL downstile,
|
||||||
|
U+230A ISOamsc -->
|
||||||
|
<!ENTITY rfloor "⌋"> <!-- right floor, U+230B ISOamsc -->
|
||||||
|
<!ENTITY lang "〈"> <!-- left-pointing angle bracket = bra,
|
||||||
|
U+2329 ISOtech -->
|
||||||
|
<!-- lang is NOT the same character as U+003C 'less than sign'
|
||||||
|
or U+2039 'single left-pointing angle quotation mark' -->
|
||||||
|
<!ENTITY rang "〉"> <!-- right-pointing angle bracket = ket,
|
||||||
|
U+232A ISOtech -->
|
||||||
|
<!-- rang is NOT the same character as U+003E 'greater than sign'
|
||||||
|
or U+203A 'single right-pointing angle quotation mark' -->
|
||||||
|
|
||||||
|
<!-- Geometric Shapes -->
|
||||||
|
<!ENTITY loz "◊"> <!-- lozenge, U+25CA ISOpub -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Symbols -->
|
||||||
|
<!ENTITY spades "♠"> <!-- black spade suit, U+2660 ISOpub -->
|
||||||
|
<!-- black here seems to mean filled as opposed to hollow -->
|
||||||
|
<!ENTITY clubs "♣"> <!-- black club suit = shamrock,
|
||||||
|
U+2663 ISOpub -->
|
||||||
|
<!ENTITY hearts "♥"> <!-- black heart suit = valentine,
|
||||||
|
U+2665 ISOpub -->
|
||||||
|
<!ENTITY diams "♦"> <!-- black diamond suit, U+2666 ISOpub -->
|
1235
src/xid/xhtml1-frameset.dtd
Normal file
1235
src/xid/xhtml1-frameset.dtd
Normal file
File diff suppressed because it is too large
Load diff
1210
src/xid/xhtml1-transitional.dtd
Normal file
1210
src/xid/xhtml1-transitional.dtd
Normal file
File diff suppressed because it is too large
Load diff
30
webapp-examples/WEB-INF/classes/build.xml
Normal file
30
webapp-examples/WEB-INF/classes/build.xml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE project>
|
||||||
|
<!-- Builds the XID Test files. -->
|
||||||
|
<project name="xid" default="dist" basedir=".">
|
||||||
|
<property name="targetjar" value="xid.jar"/>
|
||||||
|
<property name="zip_file" value="xid.zip"/> <!-- Release zip file -->
|
||||||
|
<property name="src" value="src"/>
|
||||||
|
<property name="build" value="build"/>
|
||||||
|
<property name="doc" value="doc"/>
|
||||||
|
<property name="dist" value="dist"/>
|
||||||
|
<property name="resources" value="resources"/>
|
||||||
|
<property name="debug" value="on"/>
|
||||||
|
|
||||||
|
<target name="dist" depends="compile" />
|
||||||
|
|
||||||
|
<!-- ******* Init ******* -->
|
||||||
|
<target name="init">
|
||||||
|
<tstamp/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ******* Compile ******* -->
|
||||||
|
<target name="compile" depends="init">
|
||||||
|
<javac srcdir="xid" destdir="." debug="${debug}" deprecation="on">
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="../lib" includes="**/*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
9
webapp-examples/WEB-INF/classes/log4j.properties
Normal file
9
webapp-examples/WEB-INF/classes/log4j.properties
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Log information (priority setting : DEBUG < INFO < WARN < ERROR)
|
||||||
|
# ################
|
||||||
|
log4j.rootCategory = INFO, Writer
|
||||||
|
log4j.appender.Writer = org.apache.log4j.RollingFileAppender
|
||||||
|
log4j.appender.Writer.File = /var/log/tomcat5/xid-test.log
|
||||||
|
log4j.appender.Writer.MaxFileSize = 100000KB
|
||||||
|
log4j.appender.Writer.MaxBackupIndex = 10
|
||||||
|
log4j.appender.Writer.layout = org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.Writer.layout.ConversionPattern = %d{ISO8601} - %-17t %-6p %-34c.%20M - %m%n
|
69
webapp-examples/WEB-INF/classes/testXid.t
Normal file
69
webapp-examples/WEB-INF/classes/testXid.t
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: No id attribute
|
||||||
|
XHTML: Hello <b title="a">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b title="a">world</b>.
|
||||||
|
|
||||||
|
Test 02: id attribute with empty model
|
||||||
|
XHTML: Hello <b id="test02-original" title="b">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b id="test02" title="b">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 03: model changing the text
|
||||||
|
XHTML: Hello <b id="test03-original" title="c">world</b>.
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
text.setText ("mummy");
|
||||||
|
datas.put ("test03", text);
|
||||||
|
Result: Hello <b id="test03" title="c">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 04: model changing title
|
||||||
|
XHTML: Hello <b id="test04-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
Result: Hello <b id="test04" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 05: model adding style attributes
|
||||||
|
XHTML: Hello <b id="test05-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test05", text);
|
||||||
|
Result: Hello <b id="test05" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 06: model appending style attributes
|
||||||
|
XHTML: Hello <b id="test06-original" title="d" style="background:yellow;">world</b>.
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
Result: Hello <b id="test06" title="d" style="background:yellow;">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 07: image
|
||||||
|
XHTML: A picture <img id="test07-original" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
Result: A picture <img id="test07" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
webapp-examples/WEB-INF/classes/xid/Test.class
Normal file
BIN
webapp-examples/WEB-INF/classes/xid/Test.class
Normal file
Binary file not shown.
165
webapp-examples/WEB-INF/classes/xid/Test.java
Normal file
165
webapp-examples/WEB-INF/classes/xid/Test.java
Normal file
|
@ -0,0 +1,165 @@
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package xid;
|
||||||
|
import java.io.*;
|
||||||
|
import java.text.*;
|
||||||
|
import java.util.*;
|
||||||
|
import javax.servlet.*;
|
||||||
|
import javax.servlet.http.*;
|
||||||
|
import xid.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class Test extends HttpServlet
|
||||||
|
{
|
||||||
|
static private org.apache.log4j.Logger log;
|
||||||
|
|
||||||
|
static
|
||||||
|
{
|
||||||
|
log = org.apache.log4j.Logger.getLogger (Test.class.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void doPost (HttpServletRequest req,
|
||||||
|
HttpServletResponse res)
|
||||||
|
throws ServletException, IOException
|
||||||
|
{
|
||||||
|
doGet (req, res);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void doGet (HttpServletRequest request,
|
||||||
|
HttpServletResponse response)
|
||||||
|
throws IOException, ServletException
|
||||||
|
{
|
||||||
|
log.info ("Enter");
|
||||||
|
|
||||||
|
Presenter xid = new Presenter (getServletContext ().getRealPath ("/"), "testXid.html");
|
||||||
|
|
||||||
|
//
|
||||||
|
TagsData datas = new TagsData ();
|
||||||
|
TextTagData text;
|
||||||
|
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextTagData ();
|
||||||
|
datas.put ("test03", text);
|
||||||
|
text.setText ("mummy");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
|
||||||
|
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextTagData ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
|
||||||
|
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextTagData ();
|
||||||
|
datas.put ("test05", text);
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
|
||||||
|
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextTagData ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
|
||||||
|
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextTagData ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
|
||||||
|
|
||||||
|
// Populate attributes of Test 09.
|
||||||
|
text = new TextTagData ();
|
||||||
|
text.getAttributes ().setAttribute ("class", "xid:nodisplay");
|
||||||
|
datas.put ("test09", text);
|
||||||
|
|
||||||
|
|
||||||
|
StringBuffer html;
|
||||||
|
StringBuffer errorMessage;
|
||||||
|
|
||||||
|
errorMessage = new StringBuffer ();
|
||||||
|
html = xid.doXid (datas, errorMessage);
|
||||||
|
|
||||||
|
|
||||||
|
// Display page.
|
||||||
|
response.setContentType ("text/html");
|
||||||
|
PrintWriter out = response.getWriter();
|
||||||
|
|
||||||
|
out.println ("<html>");
|
||||||
|
out.println ("<head>");
|
||||||
|
out.println ("<title>XID TEST</title>");
|
||||||
|
out.println ("</head>");
|
||||||
|
out.println ("<body bgcolor=\"orange\">");
|
||||||
|
|
||||||
|
out.println ("<hr />");
|
||||||
|
out.println ("XID TEST<br/>");
|
||||||
|
|
||||||
|
if (errorMessage.length () != 0)
|
||||||
|
{
|
||||||
|
out.println ("An error occured in Xid treatment.<br/>");
|
||||||
|
out.println ("<pre>");
|
||||||
|
out.println (errorMessage);
|
||||||
|
out.println ("</pre>");
|
||||||
|
out.println ("<hr />");
|
||||||
|
out.println ("<pre>" + Presenter.restoreEntities (html) + "</pre>");
|
||||||
|
out.println ("<hr />");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out.println ("<pre>" + Presenter.restoreEntities (html) + "</pre>");
|
||||||
|
}
|
||||||
|
|
||||||
|
out.println ("</body>");
|
||||||
|
out.println ("</html>");
|
||||||
|
|
||||||
|
log.info ("Exit");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
static public String extractBody (StringBuffer data)
|
||||||
|
{
|
||||||
|
String result = null;
|
||||||
|
|
||||||
|
// Extraire le contenu du body.
|
||||||
|
String dataLowerCase = data.toString ().toLowerCase ();
|
||||||
|
|
||||||
|
int startBody = dataLowerCase.indexOf ("<body>") + 6;
|
||||||
|
int endBody = dataLowerCase.indexOf ("</body>");
|
||||||
|
|
||||||
|
// Note: as failed search is improbable, no care about complexity
|
||||||
|
// in failed search case.
|
||||||
|
if ((startBody == -1) || (endBody == -1))
|
||||||
|
{
|
||||||
|
result = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = data.substring (startBody, endBody).trim ();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
return (result);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ////////////////////////////////////////////////////////////////////////
|
BIN
webapp-examples/WEB-INF/lib/activation.jar
Normal file
BIN
webapp-examples/WEB-INF/lib/activation.jar
Normal file
Binary file not shown.
BIN
webapp-examples/WEB-INF/lib/log4j-1.2.14.jar
Normal file
BIN
webapp-examples/WEB-INF/lib/log4j-1.2.14.jar
Normal file
Binary file not shown.
BIN
webapp-examples/WEB-INF/lib/mail.jar
Normal file
BIN
webapp-examples/WEB-INF/lib/mail.jar
Normal file
Binary file not shown.
BIN
webapp-examples/WEB-INF/lib/servlet-api.jar
Normal file
BIN
webapp-examples/WEB-INF/lib/servlet-api.jar
Normal file
Binary file not shown.
BIN
webapp-examples/WEB-INF/lib/xid.jar
Normal file
BIN
webapp-examples/WEB-INF/lib/xid.jar
Normal file
Binary file not shown.
35
webapp-examples/WEB-INF/web.xml
Normal file
35
webapp-examples/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
|
||||||
|
<!DOCTYPE web-app
|
||||||
|
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||||
|
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||||
|
|
||||||
|
<web-app>
|
||||||
|
|
||||||
|
<display-name>XID TESTS</display-name>
|
||||||
|
<description>
|
||||||
|
Some tests on XID.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<Context privileged="true" reloadable="true">
|
||||||
|
<Loader reloadable="true" className="org.apache.catalina.loader.WebappLoader" checkInterval ="2"/>
|
||||||
|
</Context>
|
||||||
|
|
||||||
|
<!-- ========================================== -->
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>XidTest</servlet-name>
|
||||||
|
<servlet-class>xid.Test</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>XidTest</servlet-name>
|
||||||
|
<url-pattern>/test.xhtml</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<!-- ========================================== -->
|
||||||
|
|
||||||
|
<welcome-file-list>
|
||||||
|
<welcome-file>index.jsp</welcome-file>
|
||||||
|
<welcome-file>index.html</welcome-file>
|
||||||
|
<welcome-file>index.htm</welcome-file>
|
||||||
|
</welcome-file-list>
|
||||||
|
|
||||||
|
</web-app>
|
249
webapp-examples/WEB-INF/web.xml.ori
Normal file
249
webapp-examples/WEB-INF/web.xml.ori
Normal file
|
@ -0,0 +1,249 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2004 The Apache Software Foundation
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!DOCTYPE web-app
|
||||||
|
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||||
|
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||||
|
|
||||||
|
<web-app>
|
||||||
|
|
||||||
|
<display-name>Servlet 2.4 Examples</display-name>
|
||||||
|
<description>
|
||||||
|
Servlet 2.4 Examples.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<!-- Define servlet-mapped and path-mapped example filters -->
|
||||||
|
<filter>
|
||||||
|
<filter-name>Servlet Mapped Filter</filter-name>
|
||||||
|
<filter-class>filters.ExampleFilter</filter-class>
|
||||||
|
<init-param>
|
||||||
|
<param-name>attribute</param-name>
|
||||||
|
<param-value>filters.ExampleFilter.SERVLET_MAPPED</param-value>
|
||||||
|
</init-param>
|
||||||
|
</filter>
|
||||||
|
<filter>
|
||||||
|
<filter-name>Path Mapped Filter</filter-name>
|
||||||
|
<filter-class>filters.ExampleFilter</filter-class>
|
||||||
|
<init-param>
|
||||||
|
<param-name>attribute</param-name>
|
||||||
|
<param-value>filters.ExampleFilter.PATH_MAPPED</param-value>
|
||||||
|
</init-param>
|
||||||
|
</filter>
|
||||||
|
<filter>
|
||||||
|
<filter-name>Request Dumper Filter</filter-name>
|
||||||
|
<filter-class>filters.RequestDumperFilter</filter-class>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<!-- Example filter to set character encoding on each request -->
|
||||||
|
<filter>
|
||||||
|
<filter-name>Set Character Encoding</filter-name>
|
||||||
|
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
|
||||||
|
<init-param>
|
||||||
|
<param-name>encoding</param-name>
|
||||||
|
<param-value>EUC_JP</param-value>
|
||||||
|
</init-param>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<filter-name>Compression Filter</filter-name>
|
||||||
|
<filter-class>compressionFilters.CompressionFilter</filter-class>
|
||||||
|
|
||||||
|
<init-param>
|
||||||
|
<param-name>compressionThreshold</param-name>
|
||||||
|
<param-value>10</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>debug</param-name>
|
||||||
|
<param-value>0</param-value>
|
||||||
|
</init-param>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<!-- Define filter mappings for the defined filters -->
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>Servlet Mapped Filter</filter-name>
|
||||||
|
<servlet-name>invoker</servlet-name>
|
||||||
|
</filter-mapping>
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>Path Mapped Filter</filter-name>
|
||||||
|
<url-pattern>/ledb-admin/*</url-pattern>
|
||||||
|
</filter-mapping>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Example filter mapping to apply the "Set Character Encoding" filter
|
||||||
|
to *all* requests processed by this web application -->
|
||||||
|
<!--
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>Set Character Encoding</filter-name>
|
||||||
|
<url-pattern>/*</url-pattern>
|
||||||
|
</filter-mapping>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>Compression Filter</filter-name>
|
||||||
|
<url-pattern>/CompressionTest</url-pattern>
|
||||||
|
</filter-mapping>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<filter-mapping>
|
||||||
|
<filter-name>Request Dumper Filter</filter-name>
|
||||||
|
<url-pattern>/*</url-pattern>
|
||||||
|
</filter-mapping>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Define example application events listeners -->
|
||||||
|
<listener>
|
||||||
|
<listener-class>listeners.ContextListener</listener-class>
|
||||||
|
</listener>
|
||||||
|
<listener>
|
||||||
|
<listener-class>listeners.SessionListener</listener-class>
|
||||||
|
</listener>
|
||||||
|
|
||||||
|
<!-- Define servlets that are included in the example application -->
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>CompressionFilterTestServlet</servlet-name>
|
||||||
|
<servlet-class>compressionFilters.CompressionFilterTestServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>HelloWorldExample</servlet-name>
|
||||||
|
<servlet-class>HelloWorldExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>RequestInfoExample</servlet-name>
|
||||||
|
<servlet-class>RequestInfoExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>RequestHeaderExample</servlet-name>
|
||||||
|
<servlet-class>RequestHeaderExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>RequestParamExample</servlet-name>
|
||||||
|
<servlet-class>RequestParamExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>CookieExample</servlet-name>
|
||||||
|
<servlet-class>CookieExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>SessionExample</servlet-name>
|
||||||
|
<servlet-class>SessionExample</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>CompressionFilterTestServlet</servlet-name>
|
||||||
|
<url-pattern>/CompressionTest</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>HelloWorldExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/HelloWorldExample</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>RequestInfoExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/RequestInfoExample/*</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>RequestHeaderExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/RequestHeaderExample</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>RequestParamExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/RequestParamExample</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>CookieExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/CookieExample</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>SessionExample</servlet-name>
|
||||||
|
<url-pattern>/servlet/SessionExample</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
|
<security-constraint>
|
||||||
|
<display-name>Example Security Constraint</display-name>
|
||||||
|
<web-resource-collection>
|
||||||
|
<web-resource-name>Protected Area</web-resource-name>
|
||||||
|
<!-- Define the context-relative URL(s) to be protected -->
|
||||||
|
<url-pattern>/jsp/security/protected/*</url-pattern>
|
||||||
|
<!-- If you list http methods, only those methods are protected -->
|
||||||
|
<http-method>DELETE</http-method>
|
||||||
|
<http-method>GET</http-method>
|
||||||
|
<http-method>POST</http-method>
|
||||||
|
<http-method>PUT</http-method>
|
||||||
|
</web-resource-collection>
|
||||||
|
<auth-constraint>
|
||||||
|
<!-- Anyone with one of the listed roles may access this area -->
|
||||||
|
<role-name>tomcat</role-name>
|
||||||
|
<role-name>role1</role-name>
|
||||||
|
</auth-constraint>
|
||||||
|
</security-constraint>
|
||||||
|
|
||||||
|
<!-- Default login configuration uses form-based authentication -->
|
||||||
|
<login-config>
|
||||||
|
<auth-method>FORM</auth-method>
|
||||||
|
<realm-name>Example Form-Based Authentication Area</realm-name>
|
||||||
|
<form-login-config>
|
||||||
|
<form-login-page>/jsp/security/protected/login.jsp</form-login-page>
|
||||||
|
<form-error-page>/jsp/security/protected/error.jsp</form-error-page>
|
||||||
|
</form-login-config>
|
||||||
|
</login-config>
|
||||||
|
|
||||||
|
<!-- Security roles referenced by this web application -->
|
||||||
|
<security-role>
|
||||||
|
<role-name>role1</role-name>
|
||||||
|
</security-role>
|
||||||
|
<security-role>
|
||||||
|
<role-name>tomcat</role-name>
|
||||||
|
</security-role>
|
||||||
|
|
||||||
|
<!-- Environment entry examples -->
|
||||||
|
<!--env-entry>
|
||||||
|
<env-entry-description>
|
||||||
|
The maximum number of tax exemptions allowed to be set.
|
||||||
|
</env-entry-description>
|
||||||
|
<env-entry-name>maxExemptions</env-entry-name>
|
||||||
|
<env-entry-value>15</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.Integer</env-entry-type>
|
||||||
|
</env-entry-->
|
||||||
|
<env-entry>
|
||||||
|
<env-entry-name>minExemptions</env-entry-name>
|
||||||
|
<env-entry-value>1</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.Integer</env-entry-type>
|
||||||
|
</env-entry>
|
||||||
|
<env-entry>
|
||||||
|
<env-entry-name>foo/name1</env-entry-name>
|
||||||
|
<env-entry-value>value1</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.String</env-entry-type>
|
||||||
|
</env-entry>
|
||||||
|
<env-entry>
|
||||||
|
<env-entry-name>foo/bar/name2</env-entry-name>
|
||||||
|
<env-entry-value>true</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.Boolean</env-entry-type>
|
||||||
|
</env-entry>
|
||||||
|
<env-entry>
|
||||||
|
<env-entry-name>name3</env-entry-name>
|
||||||
|
<env-entry-value>1</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.Integer</env-entry-type>
|
||||||
|
</env-entry>
|
||||||
|
<env-entry>
|
||||||
|
<env-entry-name>foo/name4</env-entry-name>
|
||||||
|
<env-entry-value>10</env-entry-value>
|
||||||
|
<env-entry-type>java.lang.Integer</env-entry-type>
|
||||||
|
</env-entry>
|
||||||
|
|
||||||
|
</web-app>
|
79
webapp-examples/aco.testXid.html
Normal file
79
webapp-examples/aco.testXid.html
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: No id attribute
|
||||||
|
XHTML: Hello <b title="a">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b title="a">world</b>.
|
||||||
|
|
||||||
|
Test 02: id attribute with empty model
|
||||||
|
XHTML: Hello <b id="test02-original" title="b">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b id="test02" title="b">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 03: model changing the text
|
||||||
|
XHTML: Hello <b id="test03-original" title="c">world</b>.
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
text.setText ("mummy");
|
||||||
|
datas.put ("test03", text);
|
||||||
|
Result: Hello <b id="test03" title="c">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 04: model changing title
|
||||||
|
XHTML: Hello <b id="test04-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
Result: Hello <b id="test04" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 05: model adding style attributes
|
||||||
|
XHTML: Hello <b id="test05-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test05", text);
|
||||||
|
Result: Hello <b id="test05" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 06: model appending style attributes
|
||||||
|
XHTML: Hello <b id="test06-original" title="d" style="background:yellow;">world</b>.
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
Result: Hello <b id="test06" title="d" style="background:yellow;">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 07: image
|
||||||
|
XHTML: A picture <img id="test07-original" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
Result: A picture <img id="test07" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
|
||||||
|
|
||||||
|
Test 08: xhtml source contains no display order in a tag.
|
||||||
|
XHTML: Hello <b class="xid:nodisplay_">you</b> there.
|
||||||
|
Result: Hello <b class="xid:nodisplay">you</b> there.
|
||||||
|
|
||||||
|
|
||||||
|
Test 09: dynamic addition of the nodisplay order.
|
||||||
|
XHTML: Hello <b id="test09-original">you</b> there.
|
||||||
|
Result: Hello <b id="test09">you</b> there.
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
9
webapp-examples/index.html
Normal file
9
webapp-examples/index.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>XID Examples</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
XID tests and examples.
|
||||||
|
</body>
|
||||||
|
</html>
|
9
webapp-examples/index.xhtml
Normal file
9
webapp-examples/index.xhtml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>XID Examples</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
XID tests and examples.
|
||||||
|
</body>
|
||||||
|
</html>
|
17
webapp-examples/test.html
Normal file
17
webapp-examples/test.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test XID</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: Hello <b title="a">world</b>.<br/>
|
||||||
|
Test 02: Hello <b id="test02" title="b">world</b>.<br/>
|
||||||
|
Test 03: Hello <b id="test03" title="c">world</b>.<br/>
|
||||||
|
Test 04: Hello <b id="test04" title="d">world</b>.<br/>
|
||||||
|
Test 05: Hello <b id="test05" title="d">world</b>.<br/>
|
||||||
|
Test 06: Hello <b id="test06" title="d" style="background:yellow;">world</b>.<br/>
|
||||||
|
Test 07: <img id="test07" src="http://www.ocmland.org/tmp/gnufloatingb.jpg" alt="gnu flottant" />.<br/>
|
||||||
|
Test 08: Result: Hello <b class="xid:nodisplay">you</b> there.<br/>
|
||||||
|
Test 09: Result: Hello <b id="test09">you</b> there.<br/>
|
||||||
|
</body>
|
||||||
|
</html>
|
78
webapp-examples/testXid.html
Normal file
78
webapp-examples/testXid.html
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
<!DOCTYPE html SYSTEM "xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Test 01: No id attribute<br/>
|
||||||
|
XHTML: Hello <b title="a">world</b>.
|
||||||
|
no Java code<br/>
|
||||||
|
Result: Hello <b title="a">world</b>.
|
||||||
|
|
||||||
|
Test 02: id attribute with empty model
|
||||||
|
XHTML: Hello <b id="test02-original" title="b">world</b>.
|
||||||
|
no Java code
|
||||||
|
Result: Hello <b id="test02" title="b">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 03: model changing the text
|
||||||
|
XHTML: Hello <b id="test03-original" title="c">world</b>.
|
||||||
|
// Populate attributes of Test 03.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "totoClass");
|
||||||
|
text.setText ("mummy");
|
||||||
|
datas.put ("test03", text);
|
||||||
|
Result: Hello <b id="test03" title="c">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 04: model changing title
|
||||||
|
XHTML: Hello <b id="test04-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 04.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("title", "another title");
|
||||||
|
datas.put ("test04", text);
|
||||||
|
Result: Hello <b id="test04" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 05: model adding style attributes
|
||||||
|
XHTML: Hello <b id="test05-original" title="d">world</b>.
|
||||||
|
// Populate attributes of Test 05.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "background: blue;");
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test05", text);
|
||||||
|
Result: Hello <b id="test05" title="d">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 06: model appending style attributes
|
||||||
|
XHTML: Hello <b id="test06-original" title="d" style="background:yellow;">world</b>.
|
||||||
|
// Populate attributes of Test 06.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().appendAttribute ("style", "foreground: red;");
|
||||||
|
text.getAttributes ().setAttribute ("class", "aClass");
|
||||||
|
datas.put ("test06", text);
|
||||||
|
Result: Hello <b id="test06" title="d" style="background:yellow;">world</b>.
|
||||||
|
|
||||||
|
|
||||||
|
Test 07: image
|
||||||
|
XHTML: A picture <img id="test07-original" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
// Populate attributes of Test 07.
|
||||||
|
text = new TextModel ();
|
||||||
|
text.getAttributes ().setAttribute ("width", "50%");
|
||||||
|
datas.put ("test07", text);
|
||||||
|
Result: A picture <img id="test07" src="http://www.ocmland.org/tmp/floatingb.jpg" alt="pinguoin flottant" />.
|
||||||
|
|
||||||
|
|
||||||
|
Test 08: xhtml source contains no display order in a tag.
|
||||||
|
XHTML: Hello <b class="xid:nodisplay_">you</b> there.
|
||||||
|
Result: Hello <b class="xid:nodisplay">you</b> there.
|
||||||
|
|
||||||
|
|
||||||
|
Test 09: dynamic addition of the nodisplay order.
|
||||||
|
XHTML: Hello <b id="test09-original">you</b> there.
|
||||||
|
Result: Hello <b id="test09">you</b> there.
|
||||||
|
</body>
|
||||||
|
</html>
|
196
webapp-examples/xhtml-lat1.ent
Normal file
196
webapp-examples/xhtml-lat1.ent
Normal file
|
@ -0,0 +1,196 @@
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLlat1 PUBLIC
|
||||||
|
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
|
||||||
|
%HTMLlat1;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!ENTITY nbsp " "> <!-- no-break space = non-breaking space,
|
||||||
|
U+00A0 ISOnum -->
|
||||||
|
<!ENTITY iexcl "¡"> <!-- inverted exclamation mark, U+00A1 ISOnum -->
|
||||||
|
<!ENTITY cent "¢"> <!-- cent sign, U+00A2 ISOnum -->
|
||||||
|
<!ENTITY pound "£"> <!-- pound sign, U+00A3 ISOnum -->
|
||||||
|
<!ENTITY curren "¤"> <!-- currency sign, U+00A4 ISOnum -->
|
||||||
|
<!ENTITY yen "¥"> <!-- yen sign = yuan sign, U+00A5 ISOnum -->
|
||||||
|
<!ENTITY brvbar "¦"> <!-- broken bar = broken vertical bar,
|
||||||
|
U+00A6 ISOnum -->
|
||||||
|
<!ENTITY sect "§"> <!-- section sign, U+00A7 ISOnum -->
|
||||||
|
<!ENTITY uml "¨"> <!-- diaeresis = spacing diaeresis,
|
||||||
|
U+00A8 ISOdia -->
|
||||||
|
<!ENTITY copy "©"> <!-- copyright sign, U+00A9 ISOnum -->
|
||||||
|
<!ENTITY ordf "ª"> <!-- feminine ordinal indicator, U+00AA ISOnum -->
|
||||||
|
<!ENTITY laquo "«"> <!-- left-pointing double angle quotation mark
|
||||||
|
= left pointing guillemet, U+00AB ISOnum -->
|
||||||
|
<!ENTITY not "¬"> <!-- not sign = angled dash,
|
||||||
|
U+00AC ISOnum -->
|
||||||
|
<!ENTITY shy "­"> <!-- soft hyphen = discretionary hyphen,
|
||||||
|
U+00AD ISOnum -->
|
||||||
|
<!ENTITY reg "®"> <!-- registered sign = registered trade mark sign,
|
||||||
|
U+00AE ISOnum -->
|
||||||
|
<!ENTITY macr "¯"> <!-- macron = spacing macron = overline
|
||||||
|
= APL overbar, U+00AF ISOdia -->
|
||||||
|
<!ENTITY deg "°"> <!-- degree sign, U+00B0 ISOnum -->
|
||||||
|
<!ENTITY plusmn "±"> <!-- plus-minus sign = plus-or-minus sign,
|
||||||
|
U+00B1 ISOnum -->
|
||||||
|
<!ENTITY sup2 "²"> <!-- superscript two = superscript digit two
|
||||||
|
= squared, U+00B2 ISOnum -->
|
||||||
|
<!ENTITY sup3 "³"> <!-- superscript three = superscript digit three
|
||||||
|
= cubed, U+00B3 ISOnum -->
|
||||||
|
<!ENTITY acute "´"> <!-- acute accent = spacing acute,
|
||||||
|
U+00B4 ISOdia -->
|
||||||
|
<!ENTITY micro "µ"> <!-- micro sign, U+00B5 ISOnum -->
|
||||||
|
<!ENTITY para "¶"> <!-- pilcrow sign = paragraph sign,
|
||||||
|
U+00B6 ISOnum -->
|
||||||
|
<!ENTITY middot "·"> <!-- middle dot = Georgian comma
|
||||||
|
= Greek middle dot, U+00B7 ISOnum -->
|
||||||
|
<!ENTITY cedil "¸"> <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
|
||||||
|
<!ENTITY sup1 "¹"> <!-- superscript one = superscript digit one,
|
||||||
|
U+00B9 ISOnum -->
|
||||||
|
<!ENTITY ordm "º"> <!-- masculine ordinal indicator,
|
||||||
|
U+00BA ISOnum -->
|
||||||
|
<!ENTITY raquo "»"> <!-- right-pointing double angle quotation mark
|
||||||
|
= right pointing guillemet, U+00BB ISOnum -->
|
||||||
|
<!ENTITY frac14 "¼"> <!-- vulgar fraction one quarter
|
||||||
|
= fraction one quarter, U+00BC ISOnum -->
|
||||||
|
<!ENTITY frac12 "½"> <!-- vulgar fraction one half
|
||||||
|
= fraction one half, U+00BD ISOnum -->
|
||||||
|
<!ENTITY frac34 "¾"> <!-- vulgar fraction three quarters
|
||||||
|
= fraction three quarters, U+00BE ISOnum -->
|
||||||
|
<!ENTITY iquest "¿"> <!-- inverted question mark
|
||||||
|
= turned question mark, U+00BF ISOnum -->
|
||||||
|
<!ENTITY Agrave "À"> <!-- latin capital letter A with grave
|
||||||
|
= latin capital letter A grave,
|
||||||
|
U+00C0 ISOlat1 -->
|
||||||
|
<!ENTITY Aacute "Á"> <!-- latin capital letter A with acute,
|
||||||
|
U+00C1 ISOlat1 -->
|
||||||
|
<!ENTITY Acirc "Â"> <!-- latin capital letter A with circumflex,
|
||||||
|
U+00C2 ISOlat1 -->
|
||||||
|
<!ENTITY Atilde "Ã"> <!-- latin capital letter A with tilde,
|
||||||
|
U+00C3 ISOlat1 -->
|
||||||
|
<!ENTITY Auml "Ä"> <!-- latin capital letter A with diaeresis,
|
||||||
|
U+00C4 ISOlat1 -->
|
||||||
|
<!ENTITY Aring "Å"> <!-- latin capital letter A with ring above
|
||||||
|
= latin capital letter A ring,
|
||||||
|
U+00C5 ISOlat1 -->
|
||||||
|
<!ENTITY AElig "Æ"> <!-- latin capital letter AE
|
||||||
|
= latin capital ligature AE,
|
||||||
|
U+00C6 ISOlat1 -->
|
||||||
|
<!ENTITY Ccedil "Ç"> <!-- latin capital letter C with cedilla,
|
||||||
|
U+00C7 ISOlat1 -->
|
||||||
|
<!ENTITY Egrave "È"> <!-- latin capital letter E with grave,
|
||||||
|
U+00C8 ISOlat1 -->
|
||||||
|
<!ENTITY Eacute "É"> <!-- latin capital letter E with acute,
|
||||||
|
U+00C9 ISOlat1 -->
|
||||||
|
<!ENTITY Ecirc "Ê"> <!-- latin capital letter E with circumflex,
|
||||||
|
U+00CA ISOlat1 -->
|
||||||
|
<!ENTITY Euml "Ë"> <!-- latin capital letter E with diaeresis,
|
||||||
|
U+00CB ISOlat1 -->
|
||||||
|
<!ENTITY Igrave "Ì"> <!-- latin capital letter I with grave,
|
||||||
|
U+00CC ISOlat1 -->
|
||||||
|
<!ENTITY Iacute "Í"> <!-- latin capital letter I with acute,
|
||||||
|
U+00CD ISOlat1 -->
|
||||||
|
<!ENTITY Icirc "Î"> <!-- latin capital letter I with circumflex,
|
||||||
|
U+00CE ISOlat1 -->
|
||||||
|
<!ENTITY Iuml "Ï"> <!-- latin capital letter I with diaeresis,
|
||||||
|
U+00CF ISOlat1 -->
|
||||||
|
<!ENTITY ETH "Ð"> <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
|
||||||
|
<!ENTITY Ntilde "Ñ"> <!-- latin capital letter N with tilde,
|
||||||
|
U+00D1 ISOlat1 -->
|
||||||
|
<!ENTITY Ograve "Ò"> <!-- latin capital letter O with grave,
|
||||||
|
U+00D2 ISOlat1 -->
|
||||||
|
<!ENTITY Oacute "Ó"> <!-- latin capital letter O with acute,
|
||||||
|
U+00D3 ISOlat1 -->
|
||||||
|
<!ENTITY Ocirc "Ô"> <!-- latin capital letter O with circumflex,
|
||||||
|
U+00D4 ISOlat1 -->
|
||||||
|
<!ENTITY Otilde "Õ"> <!-- latin capital letter O with tilde,
|
||||||
|
U+00D5 ISOlat1 -->
|
||||||
|
<!ENTITY Ouml "Ö"> <!-- latin capital letter O with diaeresis,
|
||||||
|
U+00D6 ISOlat1 -->
|
||||||
|
<!ENTITY times "×"> <!-- multiplication sign, U+00D7 ISOnum -->
|
||||||
|
<!ENTITY Oslash "Ø"> <!-- latin capital letter O with stroke
|
||||||
|
= latin capital letter O slash,
|
||||||
|
U+00D8 ISOlat1 -->
|
||||||
|
<!ENTITY Ugrave "Ù"> <!-- latin capital letter U with grave,
|
||||||
|
U+00D9 ISOlat1 -->
|
||||||
|
<!ENTITY Uacute "Ú"> <!-- latin capital letter U with acute,
|
||||||
|
U+00DA ISOlat1 -->
|
||||||
|
<!ENTITY Ucirc "Û"> <!-- latin capital letter U with circumflex,
|
||||||
|
U+00DB ISOlat1 -->
|
||||||
|
<!ENTITY Uuml "Ü"> <!-- latin capital letter U with diaeresis,
|
||||||
|
U+00DC ISOlat1 -->
|
||||||
|
<!ENTITY Yacute "Ý"> <!-- latin capital letter Y with acute,
|
||||||
|
U+00DD ISOlat1 -->
|
||||||
|
<!ENTITY THORN "Þ"> <!-- latin capital letter THORN,
|
||||||
|
U+00DE ISOlat1 -->
|
||||||
|
<!ENTITY szlig "ß"> <!-- latin small letter sharp s = ess-zed,
|
||||||
|
U+00DF ISOlat1 -->
|
||||||
|
<!ENTITY agrave "à"> <!-- latin small letter a with grave
|
||||||
|
= latin small letter a grave,
|
||||||
|
U+00E0 ISOlat1 -->
|
||||||
|
<!ENTITY aacute "á"> <!-- latin small letter a with acute,
|
||||||
|
U+00E1 ISOlat1 -->
|
||||||
|
<!ENTITY acirc "â"> <!-- latin small letter a with circumflex,
|
||||||
|
U+00E2 ISOlat1 -->
|
||||||
|
<!ENTITY atilde "ã"> <!-- latin small letter a with tilde,
|
||||||
|
U+00E3 ISOlat1 -->
|
||||||
|
<!ENTITY auml "ä"> <!-- latin small letter a with diaeresis,
|
||||||
|
U+00E4 ISOlat1 -->
|
||||||
|
<!ENTITY aring "å"> <!-- latin small letter a with ring above
|
||||||
|
= latin small letter a ring,
|
||||||
|
U+00E5 ISOlat1 -->
|
||||||
|
<!ENTITY aelig "æ"> <!-- latin small letter ae
|
||||||
|
= latin small ligature ae, U+00E6 ISOlat1 -->
|
||||||
|
<!ENTITY ccedil "ç"> <!-- latin small letter c with cedilla,
|
||||||
|
U+00E7 ISOlat1 -->
|
||||||
|
<!ENTITY egrave "è"> <!-- latin small letter e with grave,
|
||||||
|
U+00E8 ISOlat1 -->
|
||||||
|
<!ENTITY eacute "é"> <!-- latin small letter e with acute,
|
||||||
|
U+00E9 ISOlat1 -->
|
||||||
|
<!ENTITY ecirc "ê"> <!-- latin small letter e with circumflex,
|
||||||
|
U+00EA ISOlat1 -->
|
||||||
|
<!ENTITY euml "ë"> <!-- latin small letter e with diaeresis,
|
||||||
|
U+00EB ISOlat1 -->
|
||||||
|
<!ENTITY igrave "ì"> <!-- latin small letter i with grave,
|
||||||
|
U+00EC ISOlat1 -->
|
||||||
|
<!ENTITY iacute "í"> <!-- latin small letter i with acute,
|
||||||
|
U+00ED ISOlat1 -->
|
||||||
|
<!ENTITY icirc "î"> <!-- latin small letter i with circumflex,
|
||||||
|
U+00EE ISOlat1 -->
|
||||||
|
<!ENTITY iuml "ï"> <!-- latin small letter i with diaeresis,
|
||||||
|
U+00EF ISOlat1 -->
|
||||||
|
<!ENTITY eth "ð"> <!-- latin small letter eth, U+00F0 ISOlat1 -->
|
||||||
|
<!ENTITY ntilde "ñ"> <!-- latin small letter n with tilde,
|
||||||
|
U+00F1 ISOlat1 -->
|
||||||
|
<!ENTITY ograve "ò"> <!-- latin small letter o with grave,
|
||||||
|
U+00F2 ISOlat1 -->
|
||||||
|
<!ENTITY oacute "ó"> <!-- latin small letter o with acute,
|
||||||
|
U+00F3 ISOlat1 -->
|
||||||
|
<!ENTITY ocirc "ô"> <!-- latin small letter o with circumflex,
|
||||||
|
U+00F4 ISOlat1 -->
|
||||||
|
<!ENTITY otilde "õ"> <!-- latin small letter o with tilde,
|
||||||
|
U+00F5 ISOlat1 -->
|
||||||
|
<!ENTITY ouml "ö"> <!-- latin small letter o with diaeresis,
|
||||||
|
U+00F6 ISOlat1 -->
|
||||||
|
<!ENTITY divide "÷"> <!-- division sign, U+00F7 ISOnum -->
|
||||||
|
<!ENTITY oslash "ø"> <!-- latin small letter o with stroke,
|
||||||
|
= latin small letter o slash,
|
||||||
|
U+00F8 ISOlat1 -->
|
||||||
|
<!ENTITY ugrave "ù"> <!-- latin small letter u with grave,
|
||||||
|
U+00F9 ISOlat1 -->
|
||||||
|
<!ENTITY uacute "ú"> <!-- latin small letter u with acute,
|
||||||
|
U+00FA ISOlat1 -->
|
||||||
|
<!ENTITY ucirc "û"> <!-- latin small letter u with circumflex,
|
||||||
|
U+00FB ISOlat1 -->
|
||||||
|
<!ENTITY uuml "ü"> <!-- latin small letter u with diaeresis,
|
||||||
|
U+00FC ISOlat1 -->
|
||||||
|
<!ENTITY yacute "ý"> <!-- latin small letter y with acute,
|
||||||
|
U+00FD ISOlat1 -->
|
||||||
|
<!ENTITY thorn "þ"> <!-- latin small letter thorn,
|
||||||
|
U+00FE ISOlat1 -->
|
||||||
|
<!ENTITY yuml "ÿ"> <!-- latin small letter y with diaeresis,
|
||||||
|
U+00FF ISOlat1 -->
|
82
webapp-examples/xhtml-special.ent
Normal file
82
webapp-examples/xhtml-special.ent
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
<!-- Special characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLspecial PUBLIC
|
||||||
|
"-//W3C//ENTITIES Special for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
|
||||||
|
%HTMLspecial;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- C0 Controls and Basic Latin -->
|
||||||
|
|
||||||
|
<!-- CB 10/03/2003 Commented out as these are already defined in XML -->
|
||||||
|
<!-- ENTITY quot """> quotation mark, U+0022 ISOnum -->
|
||||||
|
<!-- ENTITY amp "&#38;"> ampersand, U+0026 ISOnum -->
|
||||||
|
<!-- ENTITY lt "&#60;"> less-than sign, U+003C ISOnum -->
|
||||||
|
<!-- ENTITY gt ">"> greater-than sign, U+003E ISOnum -->
|
||||||
|
<!-- ENTITY apos "'"> apostrophe = APL quote, U+0027 ISOnum -->
|
||||||
|
|
||||||
|
<!-- Latin Extended-A -->
|
||||||
|
<!ENTITY OElig "Œ"> <!-- latin capital ligature OE,
|
||||||
|
U+0152 ISOlat2 -->
|
||||||
|
<!ENTITY oelig "œ"> <!-- latin small ligature oe, U+0153 ISOlat2 -->
|
||||||
|
<!-- ligature is a misnomer, this is a separate character in some languages -->
|
||||||
|
<!ENTITY Scaron "Š"> <!-- latin capital letter S with caron,
|
||||||
|
U+0160 ISOlat2 -->
|
||||||
|
<!ENTITY scaron "š"> <!-- latin small letter s with caron,
|
||||||
|
U+0161 ISOlat2 -->
|
||||||
|
<!ENTITY Yuml "Ÿ"> <!-- latin capital letter Y with diaeresis,
|
||||||
|
U+0178 ISOlat2 -->
|
||||||
|
|
||||||
|
<!-- Spacing Modifier Letters -->
|
||||||
|
<!ENTITY circ "ˆ"> <!-- modifier letter circumflex accent,
|
||||||
|
U+02C6 ISOpub -->
|
||||||
|
<!ENTITY tilde "˜"> <!-- small tilde, U+02DC ISOdia -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY ensp " "> <!-- en space, U+2002 ISOpub -->
|
||||||
|
<!ENTITY emsp " "> <!-- em space, U+2003 ISOpub -->
|
||||||
|
<!ENTITY thinsp " "> <!-- thin space, U+2009 ISOpub -->
|
||||||
|
<!ENTITY zwnj "‌"> <!-- zero width non-joiner,
|
||||||
|
U+200C NEW RFC 2070 -->
|
||||||
|
<!ENTITY zwj "‍"> <!-- zero width joiner, U+200D NEW RFC 2070 -->
|
||||||
|
<!ENTITY lrm "‎"> <!-- left-to-right mark, U+200E NEW RFC 2070 -->
|
||||||
|
<!ENTITY rlm "‏"> <!-- right-to-left mark, U+200F NEW RFC 2070 -->
|
||||||
|
<!ENTITY ndash "–"> <!-- en dash, U+2013 ISOpub -->
|
||||||
|
<!ENTITY mdash "—"> <!-- em dash, U+2014 ISOpub -->
|
||||||
|
<!ENTITY lsquo "‘"> <!-- left single quotation mark,
|
||||||
|
U+2018 ISOnum -->
|
||||||
|
<!ENTITY rsquo "’"> <!-- right single quotation mark,
|
||||||
|
U+2019 ISOnum -->
|
||||||
|
<!ENTITY sbquo "‚"> <!-- single low-9 quotation mark, U+201A NEW -->
|
||||||
|
<!ENTITY ldquo "“"> <!-- left double quotation mark,
|
||||||
|
U+201C ISOnum -->
|
||||||
|
<!ENTITY rdquo "”"> <!-- right double quotation mark,
|
||||||
|
U+201D ISOnum -->
|
||||||
|
<!ENTITY bdquo "„"> <!-- double low-9 quotation mark, U+201E NEW -->
|
||||||
|
<!ENTITY dagger "†"> <!-- dagger, U+2020 ISOpub -->
|
||||||
|
<!ENTITY Dagger "‡"> <!-- double dagger, U+2021 ISOpub -->
|
||||||
|
<!ENTITY permil "‰"> <!-- per mille sign, U+2030 ISOtech -->
|
||||||
|
<!ENTITY lsaquo "‹"> <!-- single left-pointing angle quotation mark,
|
||||||
|
U+2039 ISO proposed -->
|
||||||
|
<!-- lsaquo is proposed but not yet ISO standardized -->
|
||||||
|
<!ENTITY rsaquo "›"> <!-- single right-pointing angle quotation mark,
|
||||||
|
U+203A ISO proposed -->
|
||||||
|
<!-- rsaquo is proposed but not yet ISO standardized -->
|
||||||
|
|
||||||
|
<!-- Currency Symbols -->
|
||||||
|
<!ENTITY euro "€"> <!-- euro sign, U+20AC NEW -->
|
237
webapp-examples/xhtml-symbol.ent
Normal file
237
webapp-examples/xhtml-symbol.ent
Normal file
|
@ -0,0 +1,237 @@
|
||||||
|
<!-- Mathematical, Greek and Symbolic characters for XHTML -->
|
||||||
|
|
||||||
|
<!-- Character entity set. Typical invocation:
|
||||||
|
<!ENTITY % HTMLsymbol PUBLIC
|
||||||
|
"-//W3C//ENTITIES Symbols for XHTML//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
|
||||||
|
%HTMLsymbol;
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
||||||
|
New names (i.e., not in ISO 8879 list) do not clash with any
|
||||||
|
existing ISO 8879 entity names. ISO 10646 character numbers
|
||||||
|
are given for each character, in hex. values are decimal
|
||||||
|
conversions of the ISO 10646 values and refer to the document
|
||||||
|
character set. Names are Unicode names.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Latin Extended-B -->
|
||||||
|
<!ENTITY fnof "ƒ"> <!-- latin small letter f with hook = function
|
||||||
|
= florin, U+0192 ISOtech -->
|
||||||
|
|
||||||
|
<!-- Greek -->
|
||||||
|
<!ENTITY Alpha "Α"> <!-- greek capital letter alpha, U+0391 -->
|
||||||
|
<!ENTITY Beta "Β"> <!-- greek capital letter beta, U+0392 -->
|
||||||
|
<!ENTITY Gamma "Γ"> <!-- greek capital letter gamma,
|
||||||
|
U+0393 ISOgrk3 -->
|
||||||
|
<!ENTITY Delta "Δ"> <!-- greek capital letter delta,
|
||||||
|
U+0394 ISOgrk3 -->
|
||||||
|
<!ENTITY Epsilon "Ε"> <!-- greek capital letter epsilon, U+0395 -->
|
||||||
|
<!ENTITY Zeta "Ζ"> <!-- greek capital letter zeta, U+0396 -->
|
||||||
|
<!ENTITY Eta "Η"> <!-- greek capital letter eta, U+0397 -->
|
||||||
|
<!ENTITY Theta "Θ"> <!-- greek capital letter theta,
|
||||||
|
U+0398 ISOgrk3 -->
|
||||||
|
<!ENTITY Iota "Ι"> <!-- greek capital letter iota, U+0399 -->
|
||||||
|
<!ENTITY Kappa "Κ"> <!-- greek capital letter kappa, U+039A -->
|
||||||
|
<!ENTITY Lambda "Λ"> <!-- greek capital letter lamda,
|
||||||
|
U+039B ISOgrk3 -->
|
||||||
|
<!ENTITY Mu "Μ"> <!-- greek capital letter mu, U+039C -->
|
||||||
|
<!ENTITY Nu "Ν"> <!-- greek capital letter nu, U+039D -->
|
||||||
|
<!ENTITY Xi "Ξ"> <!-- greek capital letter xi, U+039E ISOgrk3 -->
|
||||||
|
<!ENTITY Omicron "Ο"> <!-- greek capital letter omicron, U+039F -->
|
||||||
|
<!ENTITY Pi "Π"> <!-- greek capital letter pi, U+03A0 ISOgrk3 -->
|
||||||
|
<!ENTITY Rho "Ρ"> <!-- greek capital letter rho, U+03A1 -->
|
||||||
|
<!-- there is no Sigmaf, and no U+03A2 character either -->
|
||||||
|
<!ENTITY Sigma "Σ"> <!-- greek capital letter sigma,
|
||||||
|
U+03A3 ISOgrk3 -->
|
||||||
|
<!ENTITY Tau "Τ"> <!-- greek capital letter tau, U+03A4 -->
|
||||||
|
<!ENTITY Upsilon "Υ"> <!-- greek capital letter upsilon,
|
||||||
|
U+03A5 ISOgrk3 -->
|
||||||
|
<!ENTITY Phi "Φ"> <!-- greek capital letter phi,
|
||||||
|
U+03A6 ISOgrk3 -->
|
||||||
|
<!ENTITY Chi "Χ"> <!-- greek capital letter chi, U+03A7 -->
|
||||||
|
<!ENTITY Psi "Ψ"> <!-- greek capital letter psi,
|
||||||
|
U+03A8 ISOgrk3 -->
|
||||||
|
<!ENTITY Omega "Ω"> <!-- greek capital letter omega,
|
||||||
|
U+03A9 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!ENTITY alpha "α"> <!-- greek small letter alpha,
|
||||||
|
U+03B1 ISOgrk3 -->
|
||||||
|
<!ENTITY beta "β"> <!-- greek small letter beta, U+03B2 ISOgrk3 -->
|
||||||
|
<!ENTITY gamma "γ"> <!-- greek small letter gamma,
|
||||||
|
U+03B3 ISOgrk3 -->
|
||||||
|
<!ENTITY delta "δ"> <!-- greek small letter delta,
|
||||||
|
U+03B4 ISOgrk3 -->
|
||||||
|
<!ENTITY epsilon "ε"> <!-- greek small letter epsilon,
|
||||||
|
U+03B5 ISOgrk3 -->
|
||||||
|
<!ENTITY zeta "ζ"> <!-- greek small letter zeta, U+03B6 ISOgrk3 -->
|
||||||
|
<!ENTITY eta "η"> <!-- greek small letter eta, U+03B7 ISOgrk3 -->
|
||||||
|
<!ENTITY theta "θ"> <!-- greek small letter theta,
|
||||||
|
U+03B8 ISOgrk3 -->
|
||||||
|
<!ENTITY iota "ι"> <!-- greek small letter iota, U+03B9 ISOgrk3 -->
|
||||||
|
<!ENTITY kappa "κ"> <!-- greek small letter kappa,
|
||||||
|
U+03BA ISOgrk3 -->
|
||||||
|
<!ENTITY lambda "λ"> <!-- greek small letter lamda,
|
||||||
|
U+03BB ISOgrk3 -->
|
||||||
|
<!ENTITY mu "μ"> <!-- greek small letter mu, U+03BC ISOgrk3 -->
|
||||||
|
<!ENTITY nu "ν"> <!-- greek small letter nu, U+03BD ISOgrk3 -->
|
||||||
|
<!ENTITY xi "ξ"> <!-- greek small letter xi, U+03BE ISOgrk3 -->
|
||||||
|
<!ENTITY omicron "ο"> <!-- greek small letter omicron, U+03BF NEW -->
|
||||||
|
<!ENTITY pi "π"> <!-- greek small letter pi, U+03C0 ISOgrk3 -->
|
||||||
|
<!ENTITY rho "ρ"> <!-- greek small letter rho, U+03C1 ISOgrk3 -->
|
||||||
|
<!ENTITY sigmaf "ς"> <!-- greek small letter final sigma,
|
||||||
|
U+03C2 ISOgrk3 -->
|
||||||
|
<!ENTITY sigma "σ"> <!-- greek small letter sigma,
|
||||||
|
U+03C3 ISOgrk3 -->
|
||||||
|
<!ENTITY tau "τ"> <!-- greek small letter tau, U+03C4 ISOgrk3 -->
|
||||||
|
<!ENTITY upsilon "υ"> <!-- greek small letter upsilon,
|
||||||
|
U+03C5 ISOgrk3 -->
|
||||||
|
<!ENTITY phi "φ"> <!-- greek small letter phi, U+03C6 ISOgrk3 -->
|
||||||
|
<!ENTITY chi "χ"> <!-- greek small letter chi, U+03C7 ISOgrk3 -->
|
||||||
|
<!ENTITY psi "ψ"> <!-- greek small letter psi, U+03C8 ISOgrk3 -->
|
||||||
|
<!ENTITY omega "ω"> <!-- greek small letter omega,
|
||||||
|
U+03C9 ISOgrk3 -->
|
||||||
|
<!ENTITY thetasym "ϑ"> <!-- greek theta symbol,
|
||||||
|
U+03D1 NEW -->
|
||||||
|
<!ENTITY upsih "ϒ"> <!-- greek upsilon with hook symbol,
|
||||||
|
U+03D2 NEW -->
|
||||||
|
<!ENTITY piv "ϖ"> <!-- greek pi symbol, U+03D6 ISOgrk3 -->
|
||||||
|
|
||||||
|
<!-- General Punctuation -->
|
||||||
|
<!ENTITY bull "•"> <!-- bullet = black small circle,
|
||||||
|
U+2022 ISOpub -->
|
||||||
|
<!-- bullet is NOT the same as bullet operator, U+2219 -->
|
||||||
|
<!ENTITY hellip "…"> <!-- horizontal ellipsis = three dot leader,
|
||||||
|
U+2026 ISOpub -->
|
||||||
|
<!ENTITY prime "′"> <!-- prime = minutes = feet, U+2032 ISOtech -->
|
||||||
|
<!ENTITY Prime "″"> <!-- double prime = seconds = inches,
|
||||||
|
U+2033 ISOtech -->
|
||||||
|
<!ENTITY oline "‾"> <!-- overline = spacing overscore,
|
||||||
|
U+203E NEW -->
|
||||||
|
<!ENTITY frasl "⁄"> <!-- fraction slash, U+2044 NEW -->
|
||||||
|
|
||||||
|
<!-- Letterlike Symbols -->
|
||||||
|
<!ENTITY weierp "℘"> <!-- script capital P = power set
|
||||||
|
= Weierstrass p, U+2118 ISOamso -->
|
||||||
|
<!ENTITY image "ℑ"> <!-- black-letter capital I = imaginary part,
|
||||||
|
U+2111 ISOamso -->
|
||||||
|
<!ENTITY real "ℜ"> <!-- black-letter capital R = real part symbol,
|
||||||
|
U+211C ISOamso -->
|
||||||
|
<!ENTITY trade "™"> <!-- trade mark sign, U+2122 ISOnum -->
|
||||||
|
<!ENTITY alefsym "ℵ"> <!-- alef symbol = first transfinite cardinal,
|
||||||
|
U+2135 NEW -->
|
||||||
|
<!-- alef symbol is NOT the same as hebrew letter alef,
|
||||||
|
U+05D0 although the same glyph could be used to depict both characters -->
|
||||||
|
|
||||||
|
<!-- Arrows -->
|
||||||
|
<!ENTITY larr "←"> <!-- leftwards arrow, U+2190 ISOnum -->
|
||||||
|
<!ENTITY uarr "↑"> <!-- upwards arrow, U+2191 ISOnum-->
|
||||||
|
<!ENTITY rarr "→"> <!-- rightwards arrow, U+2192 ISOnum -->
|
||||||
|
<!ENTITY darr "↓"> <!-- downwards arrow, U+2193 ISOnum -->
|
||||||
|
<!ENTITY harr "↔"> <!-- left right arrow, U+2194 ISOamsa -->
|
||||||
|
<!ENTITY crarr "↵"> <!-- downwards arrow with corner leftwards
|
||||||
|
= carriage return, U+21B5 NEW -->
|
||||||
|
<!ENTITY lArr "⇐"> <!-- leftwards double arrow, U+21D0 ISOtech -->
|
||||||
|
<!-- Unicode does not say that lArr is the same as the 'is implied by' arrow
|
||||||
|
but also does not have any other character for that function. So lArr can
|
||||||
|
be used for 'is implied by' as ISOtech suggests -->
|
||||||
|
<!ENTITY uArr "⇑"> <!-- upwards double arrow, U+21D1 ISOamsa -->
|
||||||
|
<!ENTITY rArr "⇒"> <!-- rightwards double arrow,
|
||||||
|
U+21D2 ISOtech -->
|
||||||
|
<!-- Unicode does not say this is the 'implies' character but does not have
|
||||||
|
another character with this function so rArr can be used for 'implies'
|
||||||
|
as ISOtech suggests -->
|
||||||
|
<!ENTITY dArr "⇓"> <!-- downwards double arrow, U+21D3 ISOamsa -->
|
||||||
|
<!ENTITY hArr "⇔"> <!-- left right double arrow,
|
||||||
|
U+21D4 ISOamsa -->
|
||||||
|
|
||||||
|
<!-- Mathematical Operators -->
|
||||||
|
<!ENTITY forall "∀"> <!-- for all, U+2200 ISOtech -->
|
||||||
|
<!ENTITY part "∂"> <!-- partial differential, U+2202 ISOtech -->
|
||||||
|
<!ENTITY exist "∃"> <!-- there exists, U+2203 ISOtech -->
|
||||||
|
<!ENTITY empty "∅"> <!-- empty set = null set, U+2205 ISOamso -->
|
||||||
|
<!ENTITY nabla "∇"> <!-- nabla = backward difference,
|
||||||
|
U+2207 ISOtech -->
|
||||||
|
<!ENTITY isin "∈"> <!-- element of, U+2208 ISOtech -->
|
||||||
|
<!ENTITY notin "∉"> <!-- not an element of, U+2209 ISOtech -->
|
||||||
|
<!ENTITY ni "∋"> <!-- contains as member, U+220B ISOtech -->
|
||||||
|
<!ENTITY prod "∏"> <!-- n-ary product = product sign,
|
||||||
|
U+220F ISOamsb -->
|
||||||
|
<!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
|
||||||
|
the same glyph might be used for both -->
|
||||||
|
<!ENTITY sum "∑"> <!-- n-ary summation, U+2211 ISOamsb -->
|
||||||
|
<!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
|
||||||
|
though the same glyph might be used for both -->
|
||||||
|
<!ENTITY minus "−"> <!-- minus sign, U+2212 ISOtech -->
|
||||||
|
<!ENTITY lowast "∗"> <!-- asterisk operator, U+2217 ISOtech -->
|
||||||
|
<!ENTITY radic "√"> <!-- square root = radical sign,
|
||||||
|
U+221A ISOtech -->
|
||||||
|
<!ENTITY prop "∝"> <!-- proportional to, U+221D ISOtech -->
|
||||||
|
<!ENTITY infin "∞"> <!-- infinity, U+221E ISOtech -->
|
||||||
|
<!ENTITY ang "∠"> <!-- angle, U+2220 ISOamso -->
|
||||||
|
<!ENTITY and "∧"> <!-- logical and = wedge, U+2227 ISOtech -->
|
||||||
|
<!ENTITY or "∨"> <!-- logical or = vee, U+2228 ISOtech -->
|
||||||
|
<!ENTITY cap "∩"> <!-- intersection = cap, U+2229 ISOtech -->
|
||||||
|
<!ENTITY cup "∪"> <!-- union = cup, U+222A ISOtech -->
|
||||||
|
<!ENTITY int "∫"> <!-- integral, U+222B ISOtech -->
|
||||||
|
<!ENTITY there4 "∴"> <!-- therefore, U+2234 ISOtech -->
|
||||||
|
<!ENTITY sim "∼"> <!-- tilde operator = varies with = similar to,
|
||||||
|
U+223C ISOtech -->
|
||||||
|
<!-- tilde operator is NOT the same character as the tilde, U+007E,
|
||||||
|
although the same glyph might be used to represent both -->
|
||||||
|
<!ENTITY cong "≅"> <!-- approximately equal to, U+2245 ISOtech -->
|
||||||
|
<!ENTITY asymp "≈"> <!-- almost equal to = asymptotic to,
|
||||||
|
U+2248 ISOamsr -->
|
||||||
|
<!ENTITY ne "≠"> <!-- not equal to, U+2260 ISOtech -->
|
||||||
|
<!ENTITY equiv "≡"> <!-- identical to, U+2261 ISOtech -->
|
||||||
|
<!ENTITY le "≤"> <!-- less-than or equal to, U+2264 ISOtech -->
|
||||||
|
<!ENTITY ge "≥"> <!-- greater-than or equal to,
|
||||||
|
U+2265 ISOtech -->
|
||||||
|
<!ENTITY sub "⊂"> <!-- subset of, U+2282 ISOtech -->
|
||||||
|
<!ENTITY sup "⊃"> <!-- superset of, U+2283 ISOtech -->
|
||||||
|
<!ENTITY nsub "⊄"> <!-- not a subset of, U+2284 ISOamsn -->
|
||||||
|
<!ENTITY sube "⊆"> <!-- subset of or equal to, U+2286 ISOtech -->
|
||||||
|
<!ENTITY supe "⊇"> <!-- superset of or equal to,
|
||||||
|
U+2287 ISOtech -->
|
||||||
|
<!ENTITY oplus "⊕"> <!-- circled plus = direct sum,
|
||||||
|
U+2295 ISOamsb -->
|
||||||
|
<!ENTITY otimes "⊗"> <!-- circled times = vector product,
|
||||||
|
U+2297 ISOamsb -->
|
||||||
|
<!ENTITY perp "⊥"> <!-- up tack = orthogonal to = perpendicular,
|
||||||
|
U+22A5 ISOtech -->
|
||||||
|
<!ENTITY sdot "⋅"> <!-- dot operator, U+22C5 ISOamsb -->
|
||||||
|
<!-- dot operator is NOT the same character as U+00B7 middle dot -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Technical -->
|
||||||
|
<!ENTITY lceil "⌈"> <!-- left ceiling = APL upstile,
|
||||||
|
U+2308 ISOamsc -->
|
||||||
|
<!ENTITY rceil "⌉"> <!-- right ceiling, U+2309 ISOamsc -->
|
||||||
|
<!ENTITY lfloor "⌊"> <!-- left floor = APL downstile,
|
||||||
|
U+230A ISOamsc -->
|
||||||
|
<!ENTITY rfloor "⌋"> <!-- right floor, U+230B ISOamsc -->
|
||||||
|
<!ENTITY lang "〈"> <!-- left-pointing angle bracket = bra,
|
||||||
|
U+2329 ISOtech -->
|
||||||
|
<!-- lang is NOT the same character as U+003C 'less than sign'
|
||||||
|
or U+2039 'single left-pointing angle quotation mark' -->
|
||||||
|
<!ENTITY rang "〉"> <!-- right-pointing angle bracket = ket,
|
||||||
|
U+232A ISOtech -->
|
||||||
|
<!-- rang is NOT the same character as U+003E 'greater than sign'
|
||||||
|
or U+203A 'single right-pointing angle quotation mark' -->
|
||||||
|
|
||||||
|
<!-- Geometric Shapes -->
|
||||||
|
<!ENTITY loz "◊"> <!-- lozenge, U+25CA ISOpub -->
|
||||||
|
|
||||||
|
<!-- Miscellaneous Symbols -->
|
||||||
|
<!ENTITY spades "♠"> <!-- black spade suit, U+2660 ISOpub -->
|
||||||
|
<!-- black here seems to mean filled as opposed to hollow -->
|
||||||
|
<!ENTITY clubs "♣"> <!-- black club suit = shamrock,
|
||||||
|
U+2663 ISOpub -->
|
||||||
|
<!ENTITY hearts "♥"> <!-- black heart suit = valentine,
|
||||||
|
U+2665 ISOpub -->
|
||||||
|
<!ENTITY diams "♦"> <!-- black diamond suit, U+2666 ISOpub -->
|
1235
webapp-examples/xhtml1-frameset.dtd
Normal file
1235
webapp-examples/xhtml1-frameset.dtd
Normal file
File diff suppressed because it is too large
Load diff
1210
webapp-examples/xhtml1-transitional.dtd
Normal file
1210
webapp-examples/xhtml1-transitional.dtd
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue