File indexing completed on 2024-11-03 12:37:16

0001 #include "misc/htmlnames.h"
0002 #include "dom/dom_string.h"
0003 
0004 using namespace DOM;
0005 
0006 namespace khtml
0007 {
0008 
0009 IDTable<NamespaceFactory> *NamespaceFactory::s_idTable;
0010 IDTable<NamespaceFactory> *NamespaceFactory::initIdTable()
0011 {
0012     if (s_idTable) {
0013         return s_idTable;    // Can happen if KHTMLGlobal was recreated..
0014     }
0015     s_idTable = new IDTable<NamespaceFactory>();
0016     s_idTable->addStaticMapping(DOM::xmlNamespace, XML_NAMESPACE);
0017     s_idTable->addStaticMapping(DOM::xmlnsNamespace, XMLNS_NAMESPACE);
0018     s_idTable->addStaticMapping(DOM::svgNamespace, SVG_NAMESPACE);
0019     s_idTable->addStaticMapping(DOM::xlinkNamespace, XLINK_NAMESPACE);
0020     s_idTable->addStaticMapping(DOM::xhtmlNamespace, XHTML_NAMESPACE);
0021     s_idTable->addStaticMapping(DOM::emptyNamespace, DOMString());
0022     return s_idTable;
0023 }
0024 
0025 IDTable<LocalNameFactory> *LocalNameFactory::s_idTable;
0026 IDTable<LocalNameFactory> *LocalNameFactory::initIdTable()
0027 {
0028     if (s_idTable) {
0029         return s_idTable;    // Can happen if KHTMLGlobal was recreated..
0030     }
0031     s_idTable = new IDTable<LocalNameFactory>();
0032     s_idTable->addStaticMapping(0, DOMString());
0033     s_idTable->addStaticMapping(localNamePart(ID_A), "a");
0034     s_idTable->addStaticMapping(localNamePart(ID_ABBR), "abbr");
0035     s_idTable->addStaticMapping(localNamePart(ID_ACRONYM), "acronym");
0036     s_idTable->addStaticMapping(localNamePart(ID_ADDRESS), "address");
0037     s_idTable->addStaticMapping(localNamePart(ID_APPLET), "applet");
0038     s_idTable->addStaticMapping(localNamePart(ID_AREA), "area");
0039     s_idTable->addStaticMapping(localNamePart(ID_AUDIO), "audio");
0040     s_idTable->addStaticMapping(localNamePart(ID_B), "b");
0041     s_idTable->addStaticMapping(localNamePart(ID_BASE), "base");
0042     s_idTable->addStaticMapping(localNamePart(ID_BASEFONT), "basefont");
0043     s_idTable->addStaticMapping(localNamePart(ID_BDO), "bdo");
0044     s_idTable->addStaticMapping(localNamePart(ID_BIG), "big");
0045     s_idTable->addStaticMapping(localNamePart(ID_BLOCKQUOTE), "blockquote");
0046     s_idTable->addStaticMapping(localNamePart(ID_BODY), "body");
0047     s_idTable->addStaticMapping(localNamePart(ID_BR), "br");
0048     s_idTable->addStaticMapping(localNamePart(ID_BUTTON), "button");
0049     s_idTable->addStaticMapping(localNamePart(ID_CANVAS), "canvas");
0050     s_idTable->addStaticMapping(localNamePart(ID_CAPTION), "caption");
0051     s_idTable->addStaticMapping(localNamePart(ID_CENTER), "center");
0052     s_idTable->addStaticMapping(localNamePart(ID_CITE), "cite");
0053     s_idTable->addStaticMapping(localNamePart(ID_CODE), "code");
0054     s_idTable->addStaticMapping(localNamePart(ID_COL), "col");
0055     s_idTable->addStaticMapping(localNamePart(ID_COLGROUP), "colgroup");
0056     s_idTable->addStaticMapping(localNamePart(ID_DD), "dd");
0057     s_idTable->addStaticMapping(localNamePart(ID_DEL), "del");
0058     s_idTable->addStaticMapping(localNamePart(ID_DFN), "dfn");
0059     s_idTable->addStaticMapping(localNamePart(ID_DIR), "dir");
0060     s_idTable->addStaticMapping(localNamePart(ID_DIV), "div");
0061     s_idTable->addStaticMapping(localNamePart(ID_DL), "dl");
0062     s_idTable->addStaticMapping(localNamePart(ID_DT), "dt");
0063     s_idTable->addStaticMapping(localNamePart(ID_EM), "em");
0064     s_idTable->addStaticMapping(localNamePart(ID_EMBED), "embed");
0065     s_idTable->addStaticMapping(localNamePart(ID_FIELDSET), "fieldset");
0066     s_idTable->addStaticMapping(localNamePart(ID_FONT), "font");
0067     s_idTable->addStaticMapping(localNamePart(ID_FORM), "form");
0068     s_idTable->addStaticMapping(localNamePart(ID_FRAME), "frame");
0069     s_idTable->addStaticMapping(localNamePart(ID_FRAMESET), "frameset");
0070     s_idTable->addStaticMapping(localNamePart(ID_H1), "h1");
0071     s_idTable->addStaticMapping(localNamePart(ID_H2), "h2");
0072     s_idTable->addStaticMapping(localNamePart(ID_H3), "h3");
0073     s_idTable->addStaticMapping(localNamePart(ID_H4), "h4");
0074     s_idTable->addStaticMapping(localNamePart(ID_H5), "h5");
0075     s_idTable->addStaticMapping(localNamePart(ID_H6), "h6");
0076     s_idTable->addStaticMapping(localNamePart(ID_HEAD), "head");
0077     s_idTable->addStaticMapping(localNamePart(ID_HR), "hr");
0078     s_idTable->addStaticMapping(localNamePart(ID_HTML), "html");
0079     s_idTable->addStaticMapping(localNamePart(ID_I), "i");
0080     s_idTable->addStaticMapping(localNamePart(ID_IFRAME), "iframe");
0081     s_idTable->addStaticMapping(localNamePart(ID_ILAYER), "ilayer");
0082     s_idTable->addStaticMapping(localNamePart(ID_IMAGE), "image");
0083     s_idTable->addStaticMapping(localNamePart(ID_IMG), "img");
0084     s_idTable->addStaticMapping(localNamePart(ID_INPUT), "input");
0085     s_idTable->addStaticMapping(localNamePart(ID_INS), "ins");
0086     s_idTable->addStaticMapping(localNamePart(ID_ISINDEX), "isindex");
0087     s_idTable->addStaticMapping(localNamePart(ID_KBD), "kbd");
0088     s_idTable->addStaticMapping(localNamePart(ID_KEYGEN), "keygen");
0089     s_idTable->addStaticMapping(localNamePart(ID_LABEL), "label");
0090     s_idTable->addStaticMapping(localNamePart(ID_LAYER), "layer");
0091     s_idTable->addStaticMapping(localNamePart(ID_LEGEND), "legend");
0092     s_idTable->addStaticMapping(localNamePart(ID_LI), "li");
0093     s_idTable->addStaticMapping(localNamePart(ID_LINK), "link");
0094     s_idTable->addStaticMapping(localNamePart(ID_LISTING), "listing");
0095     s_idTable->addStaticMapping(localNamePart(ID_MAP), "map");
0096     s_idTable->addStaticMapping(localNamePart(ID_MARQUEE), "marquee");
0097     s_idTable->addStaticMapping(localNamePart(ID_MENU), "menu");
0098     s_idTable->addStaticMapping(localNamePart(ID_META), "meta");
0099     s_idTable->addStaticMapping(localNamePart(ID_NOBR), "nobr");
0100     s_idTable->addStaticMapping(localNamePart(ID_NOEMBED), "noembed");
0101     s_idTable->addStaticMapping(localNamePart(ID_NOFRAMES), "noframes");
0102     s_idTable->addStaticMapping(localNamePart(ID_NOSCRIPT), "noscript");
0103     s_idTable->addStaticMapping(localNamePart(ID_NOLAYER), "nolayer");
0104     s_idTable->addStaticMapping(localNamePart(ID_OBJECT), "object");
0105     s_idTable->addStaticMapping(localNamePart(ID_OL), "ol");
0106     s_idTable->addStaticMapping(localNamePart(ID_OPTGROUP), "optgroup");
0107     s_idTable->addStaticMapping(localNamePart(ID_OPTION), "option");
0108     s_idTable->addStaticMapping(localNamePart(ID_P), "p");
0109     s_idTable->addStaticMapping(localNamePart(ID_PARAM), "param");
0110     s_idTable->addStaticMapping(localNamePart(ID_PLAINTEXT), "plaintext");
0111     s_idTable->addStaticMapping(localNamePart(ID_PRE), "pre");
0112     s_idTable->addStaticMapping(localNamePart(ID_Q), "q");
0113     s_idTable->addStaticMapping(localNamePart(ID_S), "s");
0114     s_idTable->addStaticMapping(localNamePart(ID_SAMP), "samp");
0115     s_idTable->addStaticMapping(localNamePart(ID_SCRIPT), "script");
0116     s_idTable->addStaticMapping(localNamePart(ID_SELECT), "select");
0117     s_idTable->addStaticMapping(localNamePart(ID_SMALL), "small");
0118     s_idTable->addStaticMapping(localNamePart(ID_SOURCE), "source");
0119     s_idTable->addStaticMapping(localNamePart(ID_SPAN), "span");
0120     s_idTable->addStaticMapping(localNamePart(ID_STRIKE), "strike");
0121     s_idTable->addStaticMapping(localNamePart(ID_STRONG), "strong");
0122     s_idTable->addStaticMapping(localNamePart(ID_STYLE), "style");
0123     s_idTable->addStaticMapping(localNamePart(ID_SUB), "sub");
0124     s_idTable->addStaticMapping(localNamePart(ID_SUP), "sup");
0125     s_idTable->addStaticMapping(localNamePart(ID_TABLE), "table");
0126     s_idTable->addStaticMapping(localNamePart(ID_TBODY), "tbody");
0127     s_idTable->addStaticMapping(localNamePart(ID_TD), "td");
0128     s_idTable->addStaticMapping(localNamePart(ID_TEXTAREA), "textarea");
0129     s_idTable->addStaticMapping(localNamePart(ID_TFOOT), "tfoot");
0130     s_idTable->addStaticMapping(localNamePart(ID_TH), "th");
0131     s_idTable->addStaticMapping(localNamePart(ID_THEAD), "thead");
0132     s_idTable->addStaticMapping(localNamePart(ID_TITLE), "title");
0133     s_idTable->addStaticMapping(localNamePart(ID_TR), "tr");
0134     s_idTable->addStaticMapping(localNamePart(ID_TT), "tt");
0135     s_idTable->addStaticMapping(localNamePart(ID_U), "u");
0136     s_idTable->addStaticMapping(localNamePart(ID_UL), "ul");
0137     s_idTable->addStaticMapping(localNamePart(ID_VAR), "var");
0138     s_idTable->addStaticMapping(localNamePart(ID_VIDEO), "video");
0139     s_idTable->addStaticMapping(localNamePart(ID_WBR), "wbr");
0140     s_idTable->addStaticMapping(localNamePart(ID_XMP), "xmp");
0141     s_idTable->addHiddenMapping(ID_TEXT, "text");
0142     s_idTable->addHiddenMapping(ID_COMMENT, "comment");
0143     s_idTable->addStaticMapping(localNamePart(ATTR_ACCEPT_CHARSET), "accept-charset");
0144     s_idTable->addStaticMapping(localNamePart(ATTR_ACCEPT), "accept");
0145     s_idTable->addStaticMapping(localNamePart(ATTR_ACCESSKEY), "accesskey");
0146     s_idTable->addStaticMapping(localNamePart(ATTR_ALIGN), "align");
0147     s_idTable->addStaticMapping(localNamePart(ATTR_ALINK), "alink");
0148     s_idTable->addStaticMapping(localNamePart(ATTR_AUTOCOMPLETE), "autocomplete");
0149     s_idTable->addStaticMapping(localNamePart(ATTR_AUTOPLAY), "autoplay");
0150     s_idTable->addStaticMapping(localNamePart(ATTR_AXIS), "axis");
0151     s_idTable->addStaticMapping(localNamePart(ATTR_BEHAVIOR), "behavior");
0152     s_idTable->addStaticMapping(localNamePart(ATTR_BGCOLOR), "bgcolor");
0153     s_idTable->addStaticMapping(localNamePart(ATTR_BGPROPERTIES), "bgproperties");
0154     s_idTable->addStaticMapping(localNamePart(ATTR_BORDER), "border");
0155     s_idTable->addStaticMapping(localNamePart(ATTR_BORDERCOLOR), "bordercolor");
0156     s_idTable->addStaticMapping(localNamePart(ATTR_CELLPADDING), "cellpadding");
0157     s_idTable->addStaticMapping(localNamePart(ATTR_CELLSPACING), "cellspacing");
0158     s_idTable->addStaticMapping(localNamePart(ATTR_CHAR), "char");
0159     s_idTable->addStaticMapping(localNamePart(ATTR_CHALLENGE), "challenge");
0160     s_idTable->addStaticMapping(localNamePart(ATTR_CHAROFF), "charoff");
0161     s_idTable->addStaticMapping(localNamePart(ATTR_CHARSET), "charset");
0162     s_idTable->addStaticMapping(localNamePart(ATTR_CHECKED), "checked");
0163     s_idTable->addStaticMapping(localNamePart(ATTR_CLEAR), "clear");
0164     s_idTable->addStaticMapping(localNamePart(ATTR_CODETYPE), "codetype");
0165     s_idTable->addStaticMapping(localNamePart(ATTR_COLOR), "color");
0166     s_idTable->addStaticMapping(localNamePart(ATTR_COLS), "cols");
0167     s_idTable->addStaticMapping(localNamePart(ATTR_COLSPAN), "colspan");
0168     s_idTable->addStaticMapping(localNamePart(ATTR_COMPACT), "compact");
0169     s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTEDITABLE), "contenteditable");
0170     s_idTable->addStaticMapping(localNamePart(ATTR_CONTROLS), "controls");
0171     s_idTable->addStaticMapping(localNamePart(ATTR_COORDS), "coords");
0172     s_idTable->addStaticMapping(localNamePart(ATTR_DECLARE), "declare");
0173     s_idTable->addStaticMapping(localNamePart(ATTR_DEFER), "defer");
0174     s_idTable->addStaticMapping(localNamePart(ATTR_DIRECTION), "direction");
0175     s_idTable->addStaticMapping(localNamePart(ATTR_DISABLED), "disabled");
0176     s_idTable->addStaticMapping(localNamePart(ATTR_ENCTYPE), "enctype");
0177     s_idTable->addStaticMapping(localNamePart(ATTR_FACE), "face");
0178     s_idTable->addStaticMapping(localNamePart(ATTR_FRAMEBORDER), "frameborder");
0179     s_idTable->addStaticMapping(localNamePart(ATTR_HEIGHT), "height");
0180     s_idTable->addStaticMapping(localNamePart(ATTR_HIDDEN), "hidden");
0181     s_idTable->addStaticMapping(localNamePart(ATTR_HREFLANG), "hreflang");
0182     s_idTable->addStaticMapping(localNamePart(ATTR_HSPACE), "hspace");
0183     s_idTable->addStaticMapping(localNamePart(ATTR_HTTP_EQUIV), "http-equiv");
0184     s_idTable->addStaticMapping(localNamePart(ATTR_ISMAP), "ismap");
0185     s_idTable->addStaticMapping(localNamePart(ATTR_XML_LANG), "lang");
0186     s_idTable->addStaticMapping(localNamePart(ATTR_LANGUAGE), "language");
0187     s_idTable->addStaticMapping(localNamePart(ATTR_LEFT), "left");
0188     s_idTable->addStaticMapping(localNamePart(ATTR_LEFTMARGIN), "leftmargin");
0189     s_idTable->addStaticMapping(localNamePart(ATTR_LOOP), "loop");
0190     s_idTable->addStaticMapping(localNamePart(ATTR_MARGINHEIGHT), "marginheight");
0191     s_idTable->addStaticMapping(localNamePart(ATTR_MARGINWIDTH), "marginwidth");
0192     s_idTable->addStaticMapping(localNamePart(ATTR_MAXLENGTH), "maxlength");
0193     s_idTable->addStaticMapping(localNamePart(ATTR_MEDIA), "media");
0194     s_idTable->addStaticMapping(localNamePart(ATTR_METHOD), "method");
0195     s_idTable->addStaticMapping(localNamePart(ATTR_MULTIPLE), "multiple");
0196     s_idTable->addStaticMapping(localNamePart(ATTR_NOHREF), "nohref");
0197     s_idTable->addStaticMapping(localNamePart(ATTR_NORESIZE), "noresize");
0198     s_idTable->addStaticMapping(localNamePart(ATTR_NOSAVE), "nosave");
0199     s_idTable->addStaticMapping(localNamePart(ATTR_NOSHADE), "noshade");
0200     s_idTable->addStaticMapping(localNamePart(ATTR_NOWRAP), "nowrap");
0201     s_idTable->addStaticMapping(localNamePart(ATTR_ONABORT), "onabort");
0202     s_idTable->addStaticMapping(localNamePart(ATTR_ONERROR), "onerror");
0203     s_idTable->addStaticMapping(localNamePart(ATTR_ONRESIZE), "onresize");
0204     s_idTable->addStaticMapping(localNamePart(ATTR_OVERSRC), "oversrc");
0205     s_idTable->addStaticMapping(localNamePart(ATTR_PAGEX), "pagex");
0206     s_idTable->addStaticMapping(localNamePart(ATTR_PAGEY), "pagey");
0207     s_idTable->addStaticMapping(localNamePart(ATTR_PLACEHOLDER), "placeholder");
0208     s_idTable->addStaticMapping(localNamePart(ATTR_PLAIN), "plain");
0209     s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINPAGE), "pluginpage");
0210     s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINSPAGE), "pluginspage");
0211     s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINURL), "pluginurl");
0212     s_idTable->addStaticMapping(localNamePart(ATTR_POSTER), "poster");
0213     s_idTable->addStaticMapping(localNamePart(ATTR_READONLY), "readonly");
0214     s_idTable->addStaticMapping(localNamePart(ATTR_REL), "rel");
0215     s_idTable->addStaticMapping(localNamePart(ATTR_REV), "rev");
0216     s_idTable->addStaticMapping(localNamePart(ATTR_ROWS), "rows");
0217     s_idTable->addStaticMapping(localNamePart(ATTR_ROWSPAN), "rowspan");
0218     s_idTable->addStaticMapping(localNamePart(ATTR_RULES), "rules");
0219     s_idTable->addStaticMapping(localNamePart(ATTR_SCOPE), "scope");
0220     s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLAMOUNT), "scrollamount");
0221     s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLDELAY), "scrolldelay");
0222     s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLING), "scrolling");
0223     s_idTable->addStaticMapping(localNamePart(ATTR_SELECTED), "selected");
0224     s_idTable->addStaticMapping(localNamePart(ATTR_SHAPE), "shape");
0225     s_idTable->addStaticMapping(localNamePart(ATTR_SIZE), "size");
0226     s_idTable->addStaticMapping(localNamePart(ATTR_START), "start");
0227     s_idTable->addStaticMapping(localNamePart(ATTR_TABINDEX), "tabindex");
0228     s_idTable->addStaticMapping(localNamePart(ATTR_TARGET), "target");
0229     s_idTable->addStaticMapping(localNamePart(ATTR_TEXT), "text");
0230     s_idTable->addStaticMapping(localNamePart(ATTR_TOP), "top");
0231     s_idTable->addStaticMapping(localNamePart(ATTR_TOPMARGIN), "topmargin");
0232     s_idTable->addStaticMapping(localNamePart(ATTR_TRUESPEED), "truespeed");
0233     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_TYPE), "type");
0234     s_idTable->addStaticMapping(localNamePart(ATTR_UNKNOWN), "unknown");
0235     s_idTable->addStaticMapping(localNamePart(ATTR_VALIGN), "valign");
0236     s_idTable->addStaticMapping(localNamePart(ATTR_VALUETYPE), "valuetype");
0237     s_idTable->addStaticMapping(localNamePart(ATTR_VERSION), "version");
0238     s_idTable->addStaticMapping(localNamePart(ATTR_VISIBILITY), "visibility");
0239     s_idTable->addStaticMapping(localNamePart(ATTR_VLINK), "vlink");
0240     s_idTable->addStaticMapping(localNamePart(ATTR_VSPACE), "vspace");
0241     s_idTable->addStaticMapping(localNamePart(ATTR_WIDTH), "width");
0242     s_idTable->addStaticMapping(localNamePart(ATTR_WRAP), "wrap");
0243     s_idTable->addStaticMapping(localNamePart(ATTR_Z_INDEX), "z-index");
0244     s_idTable->addStaticMapping(localNamePart(ATTR_ACTION), "action");
0245     s_idTable->addStaticMapping(localNamePart(ATTR_ALT), "alt");
0246     s_idTable->addStaticMapping(localNamePart(ATTR_ARCHIVE), "archive");
0247     s_idTable->addStaticMapping(localNamePart(ATTR_BACKGROUND), "background");
0248     s_idTable->addStaticMapping(localNamePart(ATTR_CLASS), "class");
0249     s_idTable->addStaticMapping(localNamePart(ATTR_CLASSID), "classid");
0250     s_idTable->addStaticMapping(localNamePart(ATTR_CODEBASE), "codebase");
0251     s_idTable->addStaticMapping(localNamePart(ATTR_CONTENT), "content");
0252     s_idTable->addStaticMapping(localNamePart(ATTR_DATA), "data");
0253     s_idTable->addStaticMapping(localNamePart(ATTR_DATETIME), "datetime");
0254     s_idTable->addStaticMapping(localNamePart(ATTR_FOR), "for");
0255     s_idTable->addStaticMapping(localNamePart(ATTR_HEADERS), "headers");
0256     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_HREF), "href");
0257     s_idTable->addStaticMapping(localNamePart(ATTR_ID), "id");
0258     s_idTable->addStaticMapping(localNamePart(ATTR_LONGDESC), "longdesc");
0259     s_idTable->addStaticMapping(localNamePart(ATTR_NAME), "name");
0260     s_idTable->addStaticMapping(localNamePart(ATTR_ONBLUR), "onblur");
0261     s_idTable->addStaticMapping(localNamePart(ATTR_ONCHANGE), "onchange");
0262     s_idTable->addStaticMapping(localNamePart(ATTR_ONCLICK), "onclick");
0263     s_idTable->addStaticMapping(localNamePart(ATTR_ONDBLCLICK), "ondblclick");
0264     s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUS), "onfocus");
0265     s_idTable->addStaticMapping(localNamePart(ATTR_ONHASHCHANGE), "onhashchange");
0266     s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYDOWN), "onkeydown");
0267     s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYPRESS), "onkeypress");
0268     s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYUP), "onkeyup");
0269     s_idTable->addStaticMapping(localNamePart(ATTR_ONLOAD), "onload");
0270     s_idTable->addStaticMapping(localNamePart(ATTR_ONMESSAGE), "onmessage");
0271     s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEDOWN), "onmousedown");
0272     s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEMOVE), "onmousemove");
0273     s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEOUT), "onmouseout");
0274     s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEOVER), "onmouseover");
0275     s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEUP), "onmouseup");
0276     s_idTable->addStaticMapping(localNamePart(ATTR_ONRESET), "onreset");
0277     s_idTable->addStaticMapping(localNamePart(ATTR_ONSELECT), "onselect");
0278     s_idTable->addStaticMapping(localNamePart(ATTR_ONSCROLL), "onscroll");
0279     s_idTable->addStaticMapping(localNamePart(ATTR_ONSUBMIT), "onsubmit");
0280     s_idTable->addStaticMapping(localNamePart(ATTR_ONUNLOAD), "onunload");
0281     s_idTable->addStaticMapping(localNamePart(ATTR_PROFILE), "profile");
0282     s_idTable->addStaticMapping(localNamePart(ATTR_PROMPT), "prompt");
0283     s_idTable->addStaticMapping(localNamePart(ATTR_SCHEME), "scheme");
0284     s_idTable->addStaticMapping(localNamePart(ATTR_SRC), "src");
0285     s_idTable->addStaticMapping(localNamePart(ATTR_STANDBY), "standby");
0286     s_idTable->addStaticMapping(localNamePart(ATTR_SUMMARY), "summary");
0287     s_idTable->addStaticMapping(localNamePart(ATTR_USEMAP), "usemap");
0288     s_idTable->addStaticMapping(localNamePart(ATTR_VALUE), "value");
0289     s_idTable->addStaticMapping(localNamePart(ATTR_XMLNS), "xmlns");
0290     s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPH), "altGlyph");
0291     s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPHDEF), "altGlyphDef");
0292     s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPHITEM), "altGlyphItem");
0293     s_idTable->addStaticMapping(localNamePart(ID_ANIMATE), "animate");
0294     s_idTable->addStaticMapping(localNamePart(ID_ANIMATECOLOR), "animateColor");
0295     s_idTable->addStaticMapping(localNamePart(ID_ANIMATEMOTION), "animateMotion");
0296     s_idTable->addStaticMapping(localNamePart(ID_ANIMATETRANSFORM), "animateTransform");
0297     s_idTable->addStaticMapping(localNamePart(ID_SET), "set");
0298     s_idTable->addStaticMapping(localNamePart(ID_CIRCLE), "circle");
0299     s_idTable->addStaticMapping(localNamePart(ID_CLIPPATH), "clipPath");
0300     s_idTable->addStaticMapping(localNamePart(ID_COLOR_PROFILE), "color_profile");
0301     s_idTable->addStaticMapping(localNamePart(ID_CURSOR), "cursor");
0302     s_idTable->addStaticMapping(localNamePart(ID_DEFINITION_SRC), "definition_src");
0303     s_idTable->addStaticMapping(localNamePart(ID_DEFS), "defs");
0304     s_idTable->addStaticMapping(localNamePart(ID_DESC), "desc");
0305     s_idTable->addStaticMapping(localNamePart(ID_ELLIPSE), "ellipse");
0306     s_idTable->addStaticMapping(localNamePart(ID_FEBLEND), "feBlend");
0307     s_idTable->addStaticMapping(localNamePart(ID_FECOLORMATRIX), "feColorMatrix");
0308     s_idTable->addStaticMapping(localNamePart(ID_FECOMPONENTTRANSFER), "feComponentTransfer");
0309     s_idTable->addStaticMapping(localNamePart(ID_FECOMPOSITE), "feComposite");
0310     s_idTable->addStaticMapping(localNamePart(ID_FECONVOLVEMATRIX), "feConvolveMatrix");
0311     s_idTable->addStaticMapping(localNamePart(ID_FEDIFFUSELIGHTING), "feDiffuseLighting");
0312     s_idTable->addStaticMapping(localNamePart(ID_FEDISPLACEMENTMAP), "feDisplacementMap");
0313     s_idTable->addStaticMapping(localNamePart(ID_FEDISTANTLIGHT), "feDistantLight");
0314     s_idTable->addStaticMapping(localNamePart(ID_FEFLOOD), "feFlood");
0315     s_idTable->addStaticMapping(localNamePart(ID_FEFUNCA), "feFuncA");
0316     s_idTable->addStaticMapping(localNamePart(ID_FEFUNCB), "feFuncB");
0317     s_idTable->addStaticMapping(localNamePart(ID_FEFUNCG), "feFuncG");
0318     s_idTable->addStaticMapping(localNamePart(ID_FEFUNCR), "feFuncR");
0319     s_idTable->addStaticMapping(localNamePart(ID_FEGAUSSIANBLUR), "feGaussianBlur");
0320     s_idTable->addStaticMapping(localNamePart(ID_FEIMAGE), "feImage");
0321     s_idTable->addStaticMapping(localNamePart(ID_FEMERGE), "feMerge");
0322     s_idTable->addStaticMapping(localNamePart(ID_FEMERGENODE), "feMergeNode");
0323     s_idTable->addStaticMapping(localNamePart(ID_FEMORPHOLOGY), "feMorphology");
0324     s_idTable->addStaticMapping(localNamePart(ID_FEOFFSET), "feOffset");
0325     s_idTable->addStaticMapping(localNamePart(ID_FEPOINTLIGHT), "fePointLight");
0326     s_idTable->addStaticMapping(localNamePart(ID_FESPECULARLIGHTING), "feSpecularLighting");
0327     s_idTable->addStaticMapping(localNamePart(ID_FESPOTLIGHT), "feSpotLight");
0328     s_idTable->addStaticMapping(localNamePart(ID_FETILE), "feTile");
0329     s_idTable->addStaticMapping(localNamePart(ID_FETURBULENCE), "feTurbulence");
0330     s_idTable->addStaticMapping(localNamePart(ID_FILTER), "filter");
0331     s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE), "font_face");
0332     s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_FORMAT), "font_face_format");
0333     s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_NAME), "font_face_name");
0334     s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_SRC), "font_face_src");
0335     s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_URI), "font_face_uri");
0336     s_idTable->addStaticMapping(localNamePart(ID_FOREIGNOBJECT), "foreignObject");
0337     s_idTable->addStaticMapping(localNamePart(ID_G), "g");
0338     s_idTable->addStaticMapping(localNamePart(ID_GLYPH), "glyph");
0339     s_idTable->addStaticMapping(localNamePart(ID_GLYPHREF), "glyphRef");
0340     s_idTable->addStaticMapping(localNamePart(ID_HKERN), "hkern");
0341     s_idTable->addStaticMapping(localNamePart(ID_LINE), "line");
0342     s_idTable->addStaticMapping(localNamePart(ID_LINEARGRADIENT), "linearGradient");
0343     s_idTable->addStaticMapping(localNamePart(ID_MARKER), "marker");
0344     s_idTable->addStaticMapping(localNamePart(ID_MASK), "mask");
0345     s_idTable->addStaticMapping(localNamePart(ID_METADATA), "metadata");
0346     s_idTable->addStaticMapping(localNamePart(ID_MISSING_GLYPH), "missing_glyph");
0347     s_idTable->addStaticMapping(localNamePart(ID_MPATH), "mpath");
0348     s_idTable->addStaticMapping(localNamePart(ID_PATH), "path");
0349     s_idTable->addStaticMapping(localNamePart(ID_PATTERN), "pattern");
0350     s_idTable->addStaticMapping(localNamePart(ID_POLYGON), "polygon");
0351     s_idTable->addStaticMapping(localNamePart(ID_POLYLINE), "polyline");
0352     s_idTable->addStaticMapping(localNamePart(ID_RADIALGRADIENT), "radialGradient");
0353     s_idTable->addStaticMapping(localNamePart(ID_RECT), "rect");
0354     s_idTable->addStaticMapping(localNamePart(ID_STOP), "stop");
0355     s_idTable->addStaticMapping(localNamePart(ID_SVG), "svg");
0356     s_idTable->addStaticMapping(localNamePart(ID_SWITCH), "switch");
0357     s_idTable->addStaticMapping(localNamePart(ID_SYMBOL), "symbol");
0358     s_idTable->addStaticMapping(localNamePart(ID_TEXTPATH), "textPath");
0359     s_idTable->addStaticMapping(localNamePart(ID_TREF), "tref");
0360     s_idTable->addStaticMapping(localNamePart(ID_TSPAN), "tspan");
0361     s_idTable->addStaticMapping(localNamePart(ID_USE), "use");
0362     s_idTable->addStaticMapping(localNamePart(ID_VIEW), "view");
0363     s_idTable->addStaticMapping(localNamePart(ID_VKERN), "vkern");
0364     s_idTable->addStaticMapping(localNamePart(ATTR_ACCENT_HEIGHT), "accent-height");
0365     s_idTable->addStaticMapping(localNamePart(ATTR_ACCUMULATE), "accumulate");
0366     s_idTable->addStaticMapping(localNamePart(ATTR_ADDITIVE), "additive");
0367     s_idTable->addStaticMapping(localNamePart(ATTR_ALIGNMENT_BASELINE), "alignment-baseline");
0368     s_idTable->addStaticMapping(localNamePart(ATTR_ALPHABETIC), "alphabetic");
0369     s_idTable->addStaticMapping(localNamePart(ATTR_AMPLITUDE), "amplitude");
0370     s_idTable->addStaticMapping(localNamePart(ATTR_ARABIC_FORM), "arabic-form");
0371     s_idTable->addStaticMapping(localNamePart(ATTR_ASCENT), "ascent");
0372     s_idTable->addStaticMapping(localNamePart(ATTR_ATTRIBUTENAME), "attributeName");
0373     s_idTable->addStaticMapping(localNamePart(ATTR_ATTRIBUTETYPE), "attributeType");
0374     s_idTable->addStaticMapping(localNamePart(ATTR_AZIMUTH), "azimuth");
0375     s_idTable->addStaticMapping(localNamePart(ATTR_BASEFREQUENCY), "baseFrequency");
0376     s_idTable->addStaticMapping(localNamePart(ATTR_BASELINE_SHIFT), "baseline-shift");
0377     s_idTable->addStaticMapping(localNamePart(ATTR_BASEPROFILE), "baseProfile");
0378     s_idTable->addStaticMapping(localNamePart(ATTR_BBOX), "bbox");
0379     s_idTable->addStaticMapping(localNamePart(ATTR_BEGIN), "begin");
0380     s_idTable->addStaticMapping(localNamePart(ATTR_BIAS), "bias");
0381     s_idTable->addStaticMapping(localNamePart(ATTR_BY), "by");
0382     s_idTable->addStaticMapping(localNamePart(ATTR_CALCMODE), "calcMode");
0383     s_idTable->addStaticMapping(localNamePart(ATTR_CAP_HEIGHT), "cap-height");
0384     s_idTable->addStaticMapping(localNamePart(ATTR_CLIP), "clip");
0385     s_idTable->addStaticMapping(localNamePart(ATTR_CLIP_PATH), "clip-path");
0386     s_idTable->addStaticMapping(localNamePart(ATTR_CLIP_RULE), "clip-rule");
0387     s_idTable->addStaticMapping(localNamePart(ATTR_CLIPPATHUNITS), "clipPathUnits");
0388     s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_INTERPOLATION), "color-interpolation");
0389     s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_INTERPOLATION_FILTERS), "color-interpolation-filters");
0390     s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_PROFILE), "color-profile");
0391     s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_RENDERING), "color-rendering");
0392     s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTSCRIPTTYPE), "contentScriptType");
0393     s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTSTYLETYPE), "contentStyleType");
0394     s_idTable->addStaticMapping(localNamePart(ATTR_CX), "cx");
0395     s_idTable->addStaticMapping(localNamePart(ATTR_CY), "cy");
0396     s_idTable->addStaticMapping(localNamePart(ATTR_D), "d");
0397     s_idTable->addStaticMapping(localNamePart(ATTR_DESCENT), "descent");
0398     s_idTable->addStaticMapping(localNamePart(ATTR_DIFFUSECONSTANT), "diffuseConstant");
0399     s_idTable->addStaticMapping(localNamePart(ATTR_DISPLAY), "display");
0400     s_idTable->addStaticMapping(localNamePart(ATTR_DIVISOR), "divisor");
0401     s_idTable->addStaticMapping(localNamePart(ATTR_DOMINANT_BASELINE), "dominant-baseline");
0402     s_idTable->addStaticMapping(localNamePart(ATTR_DUR), "dur");
0403     s_idTable->addStaticMapping(localNamePart(ATTR_DX), "dx");
0404     s_idTable->addStaticMapping(localNamePart(ATTR_DY), "dy");
0405     s_idTable->addStaticMapping(localNamePart(ATTR_EDGEMODE), "edgeMode");
0406     s_idTable->addStaticMapping(localNamePart(ATTR_ELEVATION), "elevation");
0407     s_idTable->addStaticMapping(localNamePart(ATTR_ENABLE_BACKGROUND), "enable-background");
0408     s_idTable->addStaticMapping(localNamePart(ATTR_END), "end");
0409     s_idTable->addStaticMapping(localNamePart(ATTR_EXPONENT), "exponent");
0410     s_idTable->addStaticMapping(localNamePart(ATTR_EXTERNALRESOURCESREQUIRED), "externalResourcesRequired");
0411     s_idTable->addStaticMapping(localNamePart(ATTR_FILL), "fill");
0412     s_idTable->addStaticMapping(localNamePart(ATTR_FILL_OPACITY), "fill-opacity");
0413     s_idTable->addStaticMapping(localNamePart(ATTR_FILL_RULE), "fill-rule");
0414     s_idTable->addStaticMapping(localNamePart(ATTR_FILTERRES), "filterRes");
0415     s_idTable->addStaticMapping(localNamePart(ATTR_FILTERUNITS), "filterUnits");
0416     s_idTable->addStaticMapping(localNamePart(ATTR_FLOOD_COLOR), "flood-color");
0417     s_idTable->addStaticMapping(localNamePart(ATTR_FLOOD_OPACITY), "flood-opacity");
0418     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_FAMILY), "font-family");
0419     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_SIZE), "font-size");
0420     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_SIZE_ADJUST), "font-size-adjust");
0421     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_STRETCH), "font-stretch");
0422     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_STYLE), "font-style");
0423     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_VARIANT), "font-variant");
0424     s_idTable->addStaticMapping(localNamePart(ATTR_FONT_WEIGHT), "font-weight");
0425     s_idTable->addStaticMapping(localNamePart(ATTR_FORMAT), "format");
0426     s_idTable->addStaticMapping(localNamePart(ATTR_FROM), "from");
0427     s_idTable->addStaticMapping(localNamePart(ATTR_FX), "fx");
0428     s_idTable->addStaticMapping(localNamePart(ATTR_FY), "fy");
0429     s_idTable->addStaticMapping(localNamePart(ATTR_G1), "g1");
0430     s_idTable->addStaticMapping(localNamePart(ATTR_G2), "g2");
0431     s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_NAME), "glyph-name");
0432     s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_ORIENTATION_HORIZONTAL), "glyph-orientation-horizontal");
0433     s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_ORIENTATION_VERTICAL), "glyph-orientation-vertical");
0434     s_idTable->addStaticMapping(localNamePart(ATTR_GRADIENTTRANSFORM), "gradientTransform");
0435     s_idTable->addStaticMapping(localNamePart(ATTR_GRADIENTUNITS), "gradientUnits");
0436     s_idTable->addStaticMapping(localNamePart(ATTR_HANGING), "hanging");
0437     s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ADV_X), "horiz-adv-x");
0438     s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ORIGIN_X), "horiz-origin-x");
0439     s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ORIGIN_Y), "horiz-origin-y");
0440     s_idTable->addStaticMapping(localNamePart(ATTR_IDEOGRAPHIC), "ideographic");
0441     s_idTable->addStaticMapping(localNamePart(ATTR_IMAGE_RENDERING), "image-rendering");
0442     s_idTable->addStaticMapping(localNamePart(ATTR_IN), "in");
0443     s_idTable->addStaticMapping(localNamePart(ATTR_IN2), "in2");
0444     s_idTable->addStaticMapping(localNamePart(ATTR_INTERCEPT), "intercept");
0445     s_idTable->addStaticMapping(localNamePart(ATTR_K), "k");
0446     s_idTable->addStaticMapping(localNamePart(ATTR_K1), "k1");
0447     s_idTable->addStaticMapping(localNamePart(ATTR_K2), "k2");
0448     s_idTable->addStaticMapping(localNamePart(ATTR_K3), "k3");
0449     s_idTable->addStaticMapping(localNamePart(ATTR_K4), "k4");
0450     s_idTable->addStaticMapping(localNamePart(ATTR_KERNELMATRIX), "kernelMatrix");
0451     s_idTable->addStaticMapping(localNamePart(ATTR_KERNELUNITLENGTH), "kernelUnitLength");
0452     s_idTable->addStaticMapping(localNamePart(ATTR_KERNING), "kerning");
0453     s_idTable->addStaticMapping(localNamePart(ATTR_KEYPOINTS), "keyPoints");
0454     s_idTable->addStaticMapping(localNamePart(ATTR_KEYSPLINES), "keySplines");
0455     s_idTable->addStaticMapping(localNamePart(ATTR_KEYTIMES), "keyTimes");
0456     s_idTable->addStaticMapping(localNamePart(ATTR_LENGTHADJUST), "lengthAdjust");
0457     s_idTable->addStaticMapping(localNamePart(ATTR_LETTER_SPACING), "letter-spacing");
0458     s_idTable->addStaticMapping(localNamePart(ATTR_LIGHTING_COLOR), "lighting-color");
0459     s_idTable->addStaticMapping(localNamePart(ATTR_LIMITINGCONEANGLE), "limitingConeAngle");
0460     s_idTable->addStaticMapping(localNamePart(ATTR_LOCAL), "local");
0461     s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_END), "marker-end");
0462     s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_MID), "marker-mid");
0463     s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_START), "marker-start");
0464     s_idTable->addStaticMapping(localNamePart(ATTR_MARKERHEIGHT), "markerHeight");
0465     s_idTable->addStaticMapping(localNamePart(ATTR_MARKERUNITS), "markerUnits");
0466     s_idTable->addStaticMapping(localNamePart(ATTR_MARKERWIDTH), "markerWidth");
0467     s_idTable->addStaticMapping(localNamePart(ATTR_MASKCONTENTUNITS), "maskContentUnits");
0468     s_idTable->addStaticMapping(localNamePart(ATTR_MASKUNITS), "maskUnits");
0469     s_idTable->addStaticMapping(localNamePart(ATTR_MATHEMATICAL), "mathematical");
0470     s_idTable->addStaticMapping(localNamePart(ATTR_MAX), "max");
0471     s_idTable->addStaticMapping(localNamePart(ATTR_MIN), "min");
0472     s_idTable->addStaticMapping(localNamePart(ATTR_MODE), "mode");
0473     s_idTable->addStaticMapping(localNamePart(ATTR_NUMOCTAVES), "numOctaves");
0474     s_idTable->addStaticMapping(localNamePart(ATTR_OFFSET), "offset");
0475     s_idTable->addStaticMapping(localNamePart(ATTR_ONACTIVATE), "onactivate");
0476     s_idTable->addStaticMapping(localNamePart(ATTR_ONBEGIN), "onbegin");
0477     s_idTable->addStaticMapping(localNamePart(ATTR_ONEND), "onend");
0478     s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUSIN), "onfocusin");
0479     s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUSOUT), "onfocusout");
0480     s_idTable->addStaticMapping(localNamePart(ATTR_ONREPEAT), "onrepeat");
0481     s_idTable->addStaticMapping(localNamePart(ATTR_ONZOOM), "onzoom");
0482     s_idTable->addStaticMapping(localNamePart(ATTR_OPACITY), "opacity");
0483     s_idTable->addStaticMapping(localNamePart(ATTR_OPERATOR), "operator");
0484     s_idTable->addStaticMapping(localNamePart(ATTR_ORDER), "order");
0485     s_idTable->addStaticMapping(localNamePart(ATTR_ORIENT), "orient");
0486     s_idTable->addStaticMapping(localNamePart(ATTR_ORIENTATION), "orientation");
0487     s_idTable->addStaticMapping(localNamePart(ATTR_ORIGIN), "origin");
0488     s_idTable->addStaticMapping(localNamePart(ATTR_OVERFLOW), "overflow");
0489     s_idTable->addStaticMapping(localNamePart(ATTR_OVERLINE_POSITION), "overline-position");
0490     s_idTable->addStaticMapping(localNamePart(ATTR_OVERLINE_THICKNESS), "overline-thickness");
0491     s_idTable->addStaticMapping(localNamePart(ATTR_PANOSE_1), "panose-1");
0492     s_idTable->addStaticMapping(localNamePart(ATTR_PATHLENGTH), "pathLength");
0493     s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNCONTENTUNITS), "patternContentUnits");
0494     s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNTRANSFORM), "patternTransform");
0495     s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNUNITS), "patternUnits");
0496     s_idTable->addStaticMapping(localNamePart(ATTR_POINTER_EVENTS), "pointer-events");
0497     s_idTable->addStaticMapping(localNamePart(ATTR_POINTS), "points");
0498     s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATX), "pointsAtX");
0499     s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATY), "pointsAtY");
0500     s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATZ), "pointsAtZ");
0501     s_idTable->addStaticMapping(localNamePart(ATTR_PRESERVEALPHA), "preserveAlpha");
0502     s_idTable->addStaticMapping(localNamePart(ATTR_PRESERVEASPECTRATIO), "preserveAspectRatio");
0503     s_idTable->addStaticMapping(localNamePart(ATTR_PRIMITIVEUNITS), "primitiveUnits");
0504     s_idTable->addStaticMapping(localNamePart(ATTR_R), "r");
0505     s_idTable->addStaticMapping(localNamePart(ATTR_RADIUS), "radius");
0506     s_idTable->addStaticMapping(localNamePart(ATTR_REFX), "refX");
0507     s_idTable->addStaticMapping(localNamePart(ATTR_REFY), "refY");
0508     s_idTable->addStaticMapping(localNamePart(ATTR_RENDERING_INTENT), "rendering-intent");
0509     s_idTable->addStaticMapping(localNamePart(ATTR_REPEATCOUNT), "repeatCount");
0510     s_idTable->addStaticMapping(localNamePart(ATTR_REPEATDUR), "repeatDur");
0511     s_idTable->addStaticMapping(localNamePart(ATTR_REQUIREDEXTENSIONS), "requiredExtensions");
0512     s_idTable->addStaticMapping(localNamePart(ATTR_REQUIREDFEATURES), "requiredFeatures");
0513     s_idTable->addStaticMapping(localNamePart(ATTR_RESTART), "restart");
0514     s_idTable->addStaticMapping(localNamePart(ATTR_RESULT), "result");
0515     s_idTable->addStaticMapping(localNamePart(ATTR_ROTATE), "rotate");
0516     s_idTable->addStaticMapping(localNamePart(ATTR_RX), "rx");
0517     s_idTable->addStaticMapping(localNamePart(ATTR_RY), "ry");
0518     s_idTable->addStaticMapping(localNamePart(ATTR_SCALE), "scale");
0519     s_idTable->addStaticMapping(localNamePart(ATTR_SEED), "seed");
0520     s_idTable->addStaticMapping(localNamePart(ATTR_SHAPE_RENDERING), "shape-rendering");
0521     s_idTable->addStaticMapping(localNamePart(ATTR_SLOPE), "slope");
0522     s_idTable->addStaticMapping(localNamePart(ATTR_SPACING), "spacing");
0523     s_idTable->addStaticMapping(localNamePart(ATTR_SPECULARCONSTANT), "specularConstant");
0524     s_idTable->addStaticMapping(localNamePart(ATTR_SPECULAREXPONENT), "specularExponent");
0525     s_idTable->addStaticMapping(localNamePart(ATTR_SPREADMETHOD), "spreadMethod");
0526     s_idTable->addStaticMapping(localNamePart(ATTR_STARTOFFSET), "startOffset");
0527     s_idTable->addStaticMapping(localNamePart(ATTR_STDDEVIATION), "stdDeviation");
0528     s_idTable->addStaticMapping(localNamePart(ATTR_STEMH), "stemh");
0529     s_idTable->addStaticMapping(localNamePart(ATTR_STEMV), "stemv");
0530     s_idTable->addStaticMapping(localNamePart(ATTR_STITCHTILES), "stitchTiles");
0531     s_idTable->addStaticMapping(localNamePart(ATTR_STOP_COLOR), "stop-color");
0532     s_idTable->addStaticMapping(localNamePart(ATTR_STOP_OPACITY), "stop-opacity");
0533     s_idTable->addStaticMapping(localNamePart(ATTR_STRIKETHROUGH_POSITION), "strikethrough-position");
0534     s_idTable->addStaticMapping(localNamePart(ATTR_STRIKETHROUGH_THICKNESS), "strikethrough-thickness");
0535     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE), "stroke");
0536     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_DASHARRAY), "stroke-dasharray");
0537     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_DASHOFFSET), "stroke-dashoffset");
0538     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_LINECAP), "stroke-linecap");
0539     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_LINEJOIN), "stroke-linejoin");
0540     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_MITERLIMIT), "stroke-miterlimit");
0541     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_OPACITY), "stroke-opacity");
0542     s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_WIDTH), "stroke-width");
0543     s_idTable->addStaticMapping(localNamePart(ATTR_SURFACESCALE), "surfaceScale");
0544     s_idTable->addStaticMapping(localNamePart(ATTR_SYSTEMLANGUAGE), "systemLanguage");
0545     s_idTable->addStaticMapping(localNamePart(ATTR_TABLEVALUES), "tableValues");
0546     s_idTable->addStaticMapping(localNamePart(ATTR_TARGETX), "targetX");
0547     s_idTable->addStaticMapping(localNamePart(ATTR_TARGETY), "targetY");
0548     s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_ANCHOR), "text-anchor");
0549     s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_DECORATION), "text-decoration");
0550     s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_RENDERING), "text-rendering");
0551     s_idTable->addStaticMapping(localNamePart(ATTR_TEXTLENGTH), "textLength");
0552     s_idTable->addStaticMapping(localNamePart(ATTR_TO), "to");
0553     s_idTable->addStaticMapping(localNamePart(ATTR_TRANSFORM), "transform");
0554     s_idTable->addStaticMapping(localNamePart(ATTR_U1), "u1");
0555     s_idTable->addStaticMapping(localNamePart(ATTR_U2), "u2");
0556     s_idTable->addStaticMapping(localNamePart(ATTR_UNDERLINE_POSITION), "underline-position");
0557     s_idTable->addStaticMapping(localNamePart(ATTR_UNDERLINE_THICKNESS), "underline-thickness");
0558     s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE), "unicode");
0559     s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE_BIDI), "unicode-bidi");
0560     s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE_RANGE), "unicode-range");
0561     s_idTable->addStaticMapping(localNamePart(ATTR_UNITS_PER_EM), "units-per-em");
0562     s_idTable->addStaticMapping(localNamePart(ATTR_V_ALPHABETIC), "v-alphabetic");
0563     s_idTable->addStaticMapping(localNamePart(ATTR_V_HANGING), "v-hanging");
0564     s_idTable->addStaticMapping(localNamePart(ATTR_V_IDEOGRAPHIC), "v-ideographic");
0565     s_idTable->addStaticMapping(localNamePart(ATTR_V_MATHEMATICAL), "v-mathematical");
0566     s_idTable->addStaticMapping(localNamePart(ATTR_VALUES), "values");
0567     s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ADV_Y), "vert-adv-y");
0568     s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ORIGIN_X), "vert-origin-x");
0569     s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ORIGIN_Y), "vert-origin-y");
0570     s_idTable->addStaticMapping(localNamePart(ATTR_VIEWBOX), "viewBox");
0571     s_idTable->addStaticMapping(localNamePart(ATTR_VIEWTARGET), "viewTarget");
0572     s_idTable->addStaticMapping(localNamePart(ATTR_WIDTHS), "widths");
0573     s_idTable->addStaticMapping(localNamePart(ATTR_WORD_SPACING), "word-spacing");
0574     s_idTable->addStaticMapping(localNamePart(ATTR_WRITING_MODE), "writing-mode");
0575     s_idTable->addStaticMapping(localNamePart(ATTR_X), "x");
0576     s_idTable->addStaticMapping(localNamePart(ATTR_X_HEIGHT), "x-height");
0577     s_idTable->addStaticMapping(localNamePart(ATTR_X1), "x1");
0578     s_idTable->addStaticMapping(localNamePart(ATTR_X2), "x2");
0579     s_idTable->addStaticMapping(localNamePart(ATTR_XCHANNELSELECTOR), "xChannelSelector");
0580     s_idTable->addStaticMapping(localNamePart(ATTR_Y), "y");
0581     s_idTable->addStaticMapping(localNamePart(ATTR_Y1), "y1");
0582     s_idTable->addStaticMapping(localNamePart(ATTR_Y2), "y2");
0583     s_idTable->addStaticMapping(localNamePart(ATTR_YCHANNELSELECTOR), "yChannelSelector");
0584     s_idTable->addStaticMapping(localNamePart(ATTR_Z), "z");
0585     s_idTable->addStaticMapping(localNamePart(ATTR_ZOOMANDPAN), "zoomAndPan");
0586     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ACTUATE), "actuate");
0587     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ARCROLE), "arcrole");
0588     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ROLE), "role");
0589     s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_SHOW), "show");
0590     s_idTable->addStaticMapping(localNamePart(ATTR_XML_SPACE), "space");
0591     return s_idTable;
0592 }
0593 
0594 IDTable<PrefixFactory> *PrefixFactory::s_idTable;
0595 IDTable<PrefixFactory> *PrefixFactory::initIdTable()
0596 {
0597     if (s_idTable) {
0598         return s_idTable;    // Can happen if KHTMLGlobal was recreated..
0599     }
0600     s_idTable = new IDTable<PrefixFactory>();
0601     s_idTable->addStaticMapping(DOM::emptyPrefix, DOMString());
0602     s_idTable->addStaticMapping(DOM::xmlPrefix, "xml");
0603     s_idTable->addStaticMapping(DOM::xmlnsPrefix, "xmlns");
0604     return s_idTable;
0605 }
0606 
0607 }
0608 
0609 namespace DOM
0610 {
0611 
0612 LocalName emptyLocalName;// = LocalName::fromId(0);
0613 PrefixName emptyPrefixName;// = PrefixName::fromId(0);
0614 NamespaceName emptyNamespaceName;// = NamespaceName::fromId(0);
0615 
0616 QString getPrintableName(int id)
0617 {
0618     QString local = QString("null");
0619     QString namespacename = QString("null");
0620 
0621     if (localNamePart(id) != anyLocalName) {
0622         DOMString localName = LocalName::fromId(localNamePart(id)).toString();
0623         if (localName.implementation()) {
0624             local = localName.string();
0625         }
0626     } else {
0627         local = "*";
0628     }
0629 
0630     if (namespacePart(id) != anyNamespace) {
0631         DOMString namespaceName = NamespaceName::fromId(namespacePart(id)).toString();
0632         if (namespaceName.implementation()) {
0633             namespacename = namespaceName.string();
0634         }
0635     } else {
0636         namespacename = "*";
0637     }
0638     return "{ns:" + QString::number(namespacePart(id)) + ",[" + namespacename + "] local:" + QString::number(localNamePart(id)) + ",[" + local + "]}";
0639 }
0640 
0641 }