1. /*
  2. * The Apache Software License, Version 1.1
  3. *
  4. *
  5. * Copyright (c) 1999 The Apache Software Foundation. All rights
  6. * reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. *
  15. * 2. Redistributions in binary form must reproduce the above copyright
  16. * notice, this list of conditions and the following disclaimer in
  17. * the documentation and/or other materials provided with the
  18. * distribution.
  19. *
  20. * 3. The end-user documentation included with the redistribution,
  21. * if any, must include the following acknowledgment:
  22. * "This product includes software developed by the
  23. * Apache Software Foundation (http://www.apache.org/)."
  24. * Alternately, this acknowledgment may appear in the software itself,
  25. * if and wherever such third-party acknowledgments normally appear.
  26. *
  27. * 4. The names "Xalan" and "Apache Software Foundation" must
  28. * not be used to endorse or promote products derived from this
  29. * software without prior written permission. For written
  30. * permission, please contact apache@apache.org.
  31. *
  32. * 5. Products derived from this software may not be called "Apache",
  33. * nor may "Apache" appear in their name, without prior written
  34. * permission of the Apache Software Foundation.
  35. *
  36. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  37. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  38. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  39. * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  40. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  41. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  42. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  43. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  44. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  45. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  46. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  47. * SUCH DAMAGE.
  48. * ====================================================================
  49. *
  50. * This software consists of voluntary contributions made by many
  51. * individuals on behalf of the Apache Software Foundation and was
  52. * originally based on software copyright (c) 1999, Lotus
  53. * Development Corporation., http://www.lotus.com. For more
  54. * information on the Apache Software Foundation, please see
  55. * <http://www.apache.org/>.
  56. */
  57. package org.apache.xalan.templates;
  58. import org.apache.xml.utils.res.XResourceBundle;
  59. /**
  60. * <meta name="usage" content="advanced"/>
  61. * Primary constants used in the TransformerImpl classes.
  62. */
  63. public class Constants
  64. {
  65. /**
  66. * Mnemonics for standard XML Namespace URIs, as Java Strings:
  67. * <ul>
  68. * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the
  69. * URI permanantly assigned to the "xml:" prefix. This is used for some
  70. * features built into the XML specification itself, such as xml:space
  71. * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li>
  72. * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the
  73. * URI which indicates that a name may be an XSLT directive. In most
  74. * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined
  75. * by the W3C's XSLT Recommendation.</li>
  76. * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was
  77. * used in early prototypes of XSLT processors for much the same purpose
  78. * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version
  79. * of XSLT which it signified is not fully compatable with the final
  80. * XSLT Recommendation, so what it really signifies is a badly obsolete
  81. * stylesheet.</li>
  82. * </ul> */
  83. public static final String
  84. S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace",
  85. S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform",
  86. S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0";
  87. /** Authorship mnemonics, as Java Strings. Not standardized,
  88. * as far as I know.
  89. * <ul>
  90. * <li>S_VENDOR -- the name of the organization/individual who published
  91. * this XSLT processor. </li>
  92. * <li>S_VENDORURL -- URL where one can attempt to retrieve more
  93. * information about this publisher and product.</li>
  94. * </ul>
  95. */
  96. public static final String
  97. S_VENDOR = "Apache Software Foundation",
  98. S_VENDORURL = "http://xml.apache.org";
  99. /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace
  100. *(http://xml.apache.org/xalan) predefined to signify Xalan's
  101. * built-in XSLT Extensions. When used in stylesheets, this is often
  102. * bound to the "xalan:" prefix.
  103. */
  104. public static final String
  105. S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan";
  106. /**
  107. * The old built-in extension url. It is still supported for
  108. * backward compatibility.
  109. */
  110. public static final String
  111. S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt";
  112. /**
  113. * Xalan extension namespaces.
  114. */
  115. public static final String
  116. // The old namespace for Java extension
  117. S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java",
  118. // The new namespace for Java extension
  119. S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java",
  120. S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java",
  121. S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan",
  122. S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect",
  123. S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument",
  124. S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql";
  125. /**
  126. * EXSLT extension namespaces.
  127. */
  128. public static final String
  129. S_EXSLT_COMMON_URL = "http://exslt.org/common",
  130. S_EXSLT_MATH_URL = "http://exslt.org/math",
  131. S_EXSLT_SETS_URL = "http://exslt.org/sets",
  132. S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times",
  133. S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions",
  134. S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic",
  135. S_EXSLT_STRINGS_URL = "http://exslt.org/strings";
  136. /**
  137. * The minimum version of XSLT supported by this processor.
  138. */
  139. public static final double XSLTVERSUPPORTED = 1.0;
  140. /**
  141. * IDs for XSL element types. These are associated
  142. * with the string literals in the TransformerImpl class.
  143. * Don't change the numbers. NOTE THAT THESE ARE NOT IN
  144. * ALPHABETICAL ORDER!
  145. * (It's a pity Java doesn't have a real Enumerated Mnemonic
  146. * datatype... or a C-like preprocessor in lieu thereof which
  147. * could be used to generate and maintain synch between these lists.)
  148. */
  149. public static final int ELEMNAME_UNDEFINED = -1, ELEMNAME_WITHPARAM = 2,
  150. ELEMNAME_ADDATTRIBUTE = 4, ELEMNAME_ANCHOR = 22,
  151. // ELEMNAME_ANCHOR_PATTERN = 23,
  152. ELEMNAME_APPLY_TEMPLATES = 50, ELEMNAME_USE = 34, ELEMNAME_CHILDREN = 6,
  153. ELEMNAME_CHOOSE = 37, ELEMNAME_COMMENT = 59, // my own
  154. ELEMNAME_CONSTRUCT = 7, // my own
  155. ELEMNAME_CONTENTS = 8, ELEMNAME_COPY = 9,
  156. ELEMNAME_COPY_OF = 74,
  157. ELEMNAME_DECIMALFORMAT = 83,
  158. ELEMNAME_DEFINEATTRIBUTESET = 40,
  159. // ELEMNAME_DEFINECONSTANT = 29,
  160. // ELEMNAME_DEFINEMACRO = 10,
  161. ELEMNAME_DEFINESCRIPT = 11, ELEMNAME_DISPLAYIF = 12, // my own
  162. ELEMNAME_EMPTY = 14, ELEMNAME_EVAL = 15,
  163. ELEMNAME_EXPECTEDCHILDREN = 16,
  164. ELEMNAME_EXTENSION = 54,
  165. ELEMNAME_EXTENSIONHANDLER = 63,
  166. ELEMNAME_FOREACH = 28, ELEMNAME_KEY = 31,
  167. ELEMNAME_IF = 36, ELEMNAME_IMPORT = 26,
  168. ELEMNAME_INCLUDE = 27,
  169. ELEMNAME_CALLTEMPLATE = 17,
  170. ELEMNAME_PARAMVARIABLE = 41,
  171. ELEMNAME_NUMBER = 35, ELEMNAME_NSALIAS = 84,
  172. ELEMNAME_OTHERWISE = 39, ELEMNAME_PI = 58,
  173. ELEMNAME_PRESERVESPACE = 33,
  174. ELEMNAME_REMOVEATTRIBUTE = 5,
  175. ELEMNAME_TEMPLATE = 19, ELEMNAME_SORT = 64,
  176. ELEMNAME_STRIPSPACE = 32,
  177. ELEMNAME_STYLESHEET = 25, ELEMNAME_TEXT = 42,
  178. ELEMNAME_VALUEOF = 30, ELEMNAME_WHEN = 38,
  179. // Pattern by example support
  180. ELEMNAME_ROOT = 44, ELEMNAME_ANY = 45, ELEMNAME_ELEMENT = 46,
  181. ELEMNAME_TARGETELEMENT = 47, ELEMNAME_ATTRIBUTE = 48,
  182. ELEMNAME_TARGETATTRIBUTE = 49, ELEMNAME_URL = 52, // my own
  183. ELEMNAME_CALL = 55, // my own
  184. // ELEMNAME_WITHPARAM = 56,
  185. ELEMNAME_FALLBACK = 57, // my own
  186. ELEMNAME_TARGETPI = 60, // my own
  187. ELEMNAME_TARGETCOMMENT = 61, // my own
  188. ELEMNAME_TARGETTEXT = 62, // my own
  189. ELEMNAME_CSSSTYLECONVERSION = 65, // my own
  190. ELEMNAME_COUNTER = 66, ELEMNAME_COUNTERS = 67,
  191. ELEMNAME_COUNTERINCREMENT = 68, ELEMNAME_COUNTERRESET = 69,
  192. ELEMNAME_COUNTERSCOPE = 71, ELEMNAME_APPLY_IMPORTS = 72,
  193. ELEMNAME_VARIABLE = 73, ELEMNAME_MESSAGE = 75, ELEMNAME_LOCALE = 76,
  194. ELEMNAME_LITERALRESULT = 77, ELEMNAME_TEXTLITERALRESULT = 78,
  195. ELEMNAME_EXTENSIONCALL = 79, ELEMNAME_EXTENSIONDECL = 85,
  196. ELEMNAME_EXTENSIONSCRIPT = 86, ELEMNAME_OUTPUT = 80,
  197. ELEMNAME_COMPONENT = 81, ELEMNAME_SCRIPT = 82;
  198. // Next free number: 90 (88 and 89 used for EXSLT elements);
  199. /**
  200. * Literals for XSL element names. Note that there are more
  201. * names than IDs, because some names map to the same ID.
  202. */
  203. public static final String
  204. ELEMNAME_ANCHOR_STRING = "anchor",
  205. ELEMNAME_ANY_STRING = "any", // pattern-by-example support
  206. ELEMNAME_APPLY_IMPORTS_STRING = "apply-imports",
  207. ELEMNAME_APPLY_TEMPLATES_STRING = "apply-templates",
  208. ELEMNAME_ARG_STRING = "arg",
  209. ELEMNAME_ATTRIBUTESET_STRING = "attribute-set",
  210. ELEMNAME_ATTRIBUTE_STRING = "attribute", // pattern-by-example support
  211. ELEMNAME_CALLTEMPLATEARG_STRING = "invoke-arg",
  212. ELEMNAME_CALLTEMPLATE_STRING = "call-template",
  213. ELEMNAME_CALL_STRING = "call",
  214. ELEMNAME_CHILDREN_STRING = "children",
  215. ELEMNAME_CHOOSE_STRING = "choose",
  216. ELEMNAME_COMMENT_STRING = "comment",
  217. ELEMNAME_COMPONENT_STRING = "component",
  218. ELEMNAME_CONSTRUCT_STRING = "construct", // my own
  219. ELEMNAME_CONTENTS_STRING = "contents",
  220. ELEMNAME_COPY_OF_STRING ="copy-of",
  221. ELEMNAME_COPY_STRING = "copy",
  222. ELEMNAME_COUNTERINCREMENT_STRING = "counter-increment",
  223. ELEMNAME_COUNTERRESET_STRING = "counter-reset",
  224. ELEMNAME_COUNTERSCOPE_STRING = "counter-scope",
  225. ELEMNAME_COUNTERS_STRING = "counters",
  226. ELEMNAME_COUNTER_STRING = "counter",
  227. ELEMNAME_CSSSTYLECONVERSION_STRING = "css-style-conversion",
  228. ELEMNAME_DECIMALFORMAT_STRING = "decimal-format",
  229. ELEMNAME_DISPLAYIF_STRING = "display-if", // my own
  230. ELEMNAME_ELEMENT_STRING = "element", // pattern-by-example support
  231. ELEMNAME_EMPTY_STRING = "empty",
  232. ELEMNAME_EVAL_STRING = "eval",
  233. ELEMNAME_EXPECTEDCHILDREN_STRING = "expectedchildren",
  234. ELEMNAME_EXTENSIONHANDLER_STRING = "code-dispatcher",
  235. ELEMNAME_EXTENSION_STRING = "functions",
  236. ELEMNAME_FALLBACK_STRING = "fallback",
  237. ELEMNAME_FOREACH_STRING = "for-each",
  238. ELEMNAME_IF_STRING = "if",
  239. ELEMNAME_IMPORT_STRING = "import",
  240. ELEMNAME_INCLUDE_STRING = "include",
  241. ELEMNAME_KEY_STRING = "key",
  242. ELEMNAME_LOCALE_STRING = "locale",
  243. ELEMNAME_MESSAGE_STRING = "message",
  244. ELEMNAME_NSALIAS_STRING = "namespace-alias",
  245. ELEMNAME_NUMBER_STRING = "number",
  246. ELEMNAME_OTHERWISE_STRING = "otherwise",
  247. ELEMNAME_OUTPUT_STRING = "output",
  248. ELEMNAME_PARAMVARIABLE_STRING = "param",
  249. ELEMNAME_PI_OLD_STRING = "pi",
  250. ELEMNAME_PI_STRING = "processing-instruction",
  251. ELEMNAME_PRESERVESPACE_STRING = "preserve-space",
  252. ELEMNAME_ROOT_STRING = "root", // pattern-by-example support
  253. ELEMNAME_SCRIPT_STRING = "script",
  254. ELEMNAME_SORT_STRING = "sort",
  255. ELEMNAME_STRIPSPACE_STRING = "strip-space",
  256. ELEMNAME_STYLESHEET_STRING = "stylesheet",
  257. ELEMNAME_TARGETATTRIBUTE_STRING = "target-attribute", // pattern-by-example support
  258. ELEMNAME_TARGETCOMMENT_STRING = "target-comment",
  259. ELEMNAME_TARGETELEMENT_STRING = "target-element", // pattern-by-example support
  260. ELEMNAME_TARGETPI_STRING = "target-pi",
  261. ELEMNAME_TARGETTEXT_STRING = "target-text",
  262. ELEMNAME_TEMPLATE_STRING = "template",
  263. ELEMNAME_TEXT_STRING = "text",
  264. ELEMNAME_TRANSFORM_STRING = "transform",
  265. ELEMNAME_URL_STRING = "uri", // pattern-by-example support
  266. ELEMNAME_USE_STRING = "use",
  267. ELEMNAME_VALUEOF_STRING = "value-of",
  268. ELEMNAME_VARIABLE_STRING = "variable",
  269. ELEMNAME_WHEN_STRING = "when",
  270. ELEMNAME_WITHPARAM_STRING = "with-param";
  271. /**
  272. * Literals for EXSLT function elements.
  273. */
  274. public static final String
  275. EXSLT_ELEMNAME_FUNCTION_STRING = "function",
  276. EXSLT_ELEMNAME_FUNCRESULT_STRING = "result";
  277. public static final int
  278. EXSLT_ELEMNAME_FUNCTION = 88,
  279. EXSLT_ELEMNAME_FUNCRESULT = 89;
  280. /**
  281. * Literals for XSL attribute names. Note that there may be more
  282. * names than IDs, because some names may map to the same ID.
  283. */
  284. public static final String
  285. ATTRNAME_AMOUNT = "amount",
  286. ATTRNAME_ANCESTOR = "ancestor",
  287. ATTRNAME_ARCHIVE = "archive",
  288. ATTRNAME_ATTRIBUTE = "attribute",
  289. ATTRNAME_ATTRIBUTE_SET = "attribute-set",
  290. ATTRNAME_CASEORDER = "case-order",
  291. ATTRNAME_CLASS = "class",
  292. ATTRNAME_CLASSID = "classid",
  293. ATTRNAME_CODEBASE = "codebase",
  294. ATTRNAME_CODETYPE = "type",
  295. ATTRNAME_CONDITION = "condition",
  296. ATTRNAME_COPYTYPE = "copy-type",
  297. ATTRNAME_COUNT = "count",
  298. ATTRNAME_DATATYPE = "data-type",
  299. ATTRNAME_DECIMALSEPARATOR = "decimal-separator",
  300. ATTRNAME_DEFAULT = "default",
  301. ATTRNAME_DEFAULTSPACE = "default-space",
  302. ATTRNAME_DEPTH = "with-children",
  303. ATTRNAME_DIGIT = "digit",
  304. ATTRNAME_DIGITGROUPSEP = "digit-group-sep",
  305. ATTRNAME_DISABLE_OUTPUT_ESCAPING = "disable-output-escaping",
  306. ATTRNAME_ELEMENT = "element",
  307. ATTRNAME_ELEMENTS = "elements",
  308. ATTRNAME_EXCLUDE_RESULT_PREFIXES ="exclude-result-prefixes",
  309. ATTRNAME_EXPR = "expr",
  310. ATTRNAME_EXTENSIONELEMENTPREFIXES = "extension-element-prefixes",
  311. ATTRNAME_FORMAT = "format",
  312. ATTRNAME_FROM = "from",
  313. ATTRNAME_GROUPINGSEPARATOR = "grouping-separator",
  314. ATTRNAME_GROUPINGSIZE = "grouping-size",
  315. ATTRNAME_HREF = "href",
  316. ATTRNAME_ID = "id",
  317. ATTRNAME_IMPORTANCE = "importance",
  318. ATTRNAME_INDENTRESULT = "indent-result",
  319. ATTRNAME_INFINITY = "infinity",
  320. ATTRNAME_LANG = "lang",
  321. ATTRNAME_LETTERVALUE = "letter-value",
  322. ATTRNAME_LEVEL = "level",
  323. ATTRNAME_MATCH = "match",
  324. ATTRNAME_METHOD = "calls",
  325. ATTRNAME_MINUSSIGN = "minus-sign",
  326. ATTRNAME_MODE = "mode",
  327. ATTRNAME_NAME = "name",
  328. ATTRNAME_NAMESPACE = "namespace",
  329. ATTRNAME_NAN = "NaN",
  330. ATTRNAME_NDIGITSPERGROUP = "n-digits-per-group",
  331. ATTRNAME_NS = "ns",
  332. ATTRNAME_ONLY = "only",
  333. ATTRNAME_ORDER = "order",
  334. ATTRNAME_OUTPUT_CDATA_SECTION_ELEMENTS = "cdata-section-elements",
  335. ATTRNAME_OUTPUT_DOCTYPE_PUBLIC = "doctype-public",
  336. ATTRNAME_OUTPUT_DOCTYPE_SYSTEM = "doctype-system",
  337. ATTRNAME_OUTPUT_ENCODING = "encoding",
  338. ATTRNAME_OUTPUT_INDENT = "indent",
  339. ATTRNAME_OUTPUT_MEDIATYPE = "media-type",
  340. ATTRNAME_OUTPUT_METHOD = "method", // qname,
  341. ATTRNAME_OUTPUT_OMITXMLDECL = "omit-xml-declaration",
  342. ATTRNAME_OUTPUT_STANDALONE = "standalone",
  343. ATTRNAME_OUTPUT_VERSION = "version",
  344. ATTRNAME_PATTERNSEPARATOR = "pattern-separator",
  345. ATTRNAME_PERCENT = "percent",
  346. ATTRNAME_PERMILLE = "per-mille",
  347. ATTRNAME_PRIORITY = "priority",
  348. ATTRNAME_REFID = "refID",
  349. ATTRNAME_RESULTNS = "result-ns",
  350. ATTRNAME_RESULT_PREFIX = "result-prefix",
  351. ATTRNAME_SELECT = "select",
  352. ATTRNAME_SEQUENCESRC = "sequence-src",
  353. ATTRNAME_STYLE = "style",
  354. ATTRNAME_STYLESHEET_PREFIX = "stylesheet-prefix",
  355. ATTRNAME_TERMINATE = "terminate",
  356. ATTRNAME_TEST = "test",
  357. ATTRNAME_TOSTRING = "to-string",
  358. ATTRNAME_TYPE = "type",
  359. ATTRNAME_USE = "use",
  360. ATTRNAME_USEATTRIBUTESETS = "use-attribute-sets",
  361. ATTRNAME_VALUE = "value",
  362. ATTRNAME_VERSION = "version",
  363. ATTRNAME_XMLNS = "xmlns:", // namespace declaration prefix -- NOT an attribute by itself
  364. ATTRNAME_XMLNSDEF = "xmlns", // default namespace
  365. ATTRNAME_XMLSPACE = "xml:space",
  366. ATTRNAME_ZERODIGIT = "zero-digit";
  367. /** IDs for XSL attribute types. These are associated
  368. * with the string literals in the TransformerImpl class.
  369. * Don't change the numbers. NOTE THAT THESE ARE NOT IN
  370. * ALPHABETICAL ORDER!
  371. */
  372. public static final int TATTRNAME_OUTPUT_METHOD = 1, TATTRNAME_AMOUNT = 2,
  373. TATTRNAME_ANCESTOR = 3, TATTRNAME_ARCHIVE = 4,
  374. TATTRNAME_ATTRIBUTE = 5,
  375. TATTRNAME_ATTRIBUTE_SET = 6,
  376. TATTRNAME_CASEORDER = 7, TATTRNAME_CLASS = 8,
  377. TATTRNAME_CLASSID = 9, TATTRNAME_CODEBASE = 10,
  378. TATTRNAME_CODETYPE = 11, TATTRNAME_CONDITION = 12,
  379. TATTRNAME_COPYTYPE = 13, TATTRNAME_COUNT = 14,
  380. TATTRNAME_DATATYPE = 15, TATTRNAME_DEFAULT = 16,
  381. TATTRNAME_DEFAULTSPACE = 17, TATTRNAME_DEPTH = 18,
  382. TATTRNAME_DIGITGROUPSEP = 19,
  383. TATTRNAME_DISABLE_OUTPUT_ESCAPING = 20,
  384. TATTRNAME_ELEMENT = 21, TATTRNAME_ELEMENTS = 22,
  385. TATTRNAME_EXPR = 23,
  386. TATTRNAME_EXTENSIONELEMENTPREFIXES = 24,
  387. TATTRNAME_FORMAT = 25, TATTRNAME_FROM = 26,
  388. TATTRNAME_GROUPINGSEPARATOR = 27,
  389. TATTRNAME_GROUPINGSIZE = 28, TATTRNAME_HREF = 29,
  390. TATTRNAME_ID = 30, TATTRNAME_IMPORTANCE = 31,
  391. TATTRNAME_INDENTRESULT = 32, TATTRNAME_LANG = 33,
  392. TATTRNAME_LETTERVALUE = 34, TATTRNAME_LEVEL = 35,
  393. TATTRNAME_MATCH = 36, TATTRNAME_METHOD = 37,
  394. TATTRNAME_MODE = 38, TATTRNAME_NAME = 39,
  395. TATTRNAME_NAMESPACE = 40,
  396. TATTRNAME_NDIGITSPERGROUP = 41, TATTRNAME_NS = 42,
  397. TATTRNAME_ONLY = 43, TATTRNAME_ORDER = 44,
  398. TATTRNAME_OUTPUT_CDATA_SECTION_ELEMENTS = 45,
  399. TATTRNAME_OUTPUT_DOCTYPE_PUBLIC = 46,
  400. TATTRNAME_OUTPUT_DOCTYPE_SYSTEM = 47,
  401. TATTRNAME_OUTPUT_ENCODING = 48,
  402. TATTRNAME_OUTPUT_INDENT = 49,
  403. TATTRNAME_OUTPUT_MEDIATYPE = 50,
  404. TATTRNAME_OUTPUT_STANDALONE = 51,
  405. TATTRNAME_OUTPUT_VERSION = 52,
  406. TATTRNAME_OUTPUT_OMITXMLDECL = 53,
  407. TATTRNAME_PRIORITY = 54, TATTRNAME_REFID = 55,
  408. TATTRNAME_RESULTNS = 56, TATTRNAME_SELECT = 57,
  409. TATTRNAME_SEQUENCESRC = 58, TATTRNAME_STYLE = 59,
  410. TATTRNAME_TEST = 60, TATTRNAME_TOSTRING = 61,
  411. TATTRNAME_TYPE = 62, TATTRNAME_USE = 63,
  412. TATTRNAME_USEATTRIBUTESETS = 64,
  413. TATTRNAME_VALUE = 65, TATTRNAME_XMLNSDEF = 66,
  414. TATTRNAME_XMLNS = 67, TATTRNAME_XMLSPACE = 68,
  415. TATTRNAME_EXCLUDE_RESULT_PREFIXES = 69;
  416. /** Mnemonics for the possible values of the xsl:output element's
  417. * method= attribute:
  418. * <ul>
  419. * <li>ATTRVAL_OUTPUT_METHOD_XML = Use an XML formatter to
  420. * produce the output document (basic XSLT operation).</li>
  421. * <li>ATTRVAL_OUTPUT_METHOD_HTML: Use an HTML formatter to
  422. * produce the output document. When generating HTML documents,
  423. * this may yield better results; it does things like escaping
  424. * characters in href attributes.</li>
  425. * </li>ATTRVAL_OUTPUT_METHOD_TEXT: Use a Text formatter to
  426. * produce the output document. Generally the right choice if your
  427. * stylesheet wants to take over _all_ the details of formatting,
  428. * most often when producing something that isn't an XML or HTML
  429. * document.</li>
  430. * </ul>
  431. * */
  432. public static final String ATTRVAL_OUTPUT_METHOD_HTML = "html",
  433. ATTRVAL_OUTPUT_METHOD_XML = "xml",
  434. ATTRVAL_OUTPUT_METHOD_TEXT = "text";
  435. /* For space-att*/
  436. public static final int ATTRVAL_PRESERVE = 1, ATTRVAL_STRIP = 2;
  437. /** For indent-result */
  438. public static final boolean ATTRVAL_YES = true, ATTRVAL_NO = false;
  439. /** For letter-value attribute (part of conversion attributes). */
  440. public static final String ATTRVAL_ALPHABETIC = "alphabetic",
  441. ATTRVAL_OTHER = "other",
  442. ATTRVAL_TRADITIONAL = "traditional";
  443. /** For level attribute in xsl:number. */
  444. public static final String ATTRVAL_SINGLE = "single",
  445. ATTRVAL_MULTI = "multiple", ATTRVAL_ANY = "any";
  446. /** For Stylesheet-prefix and result-prefix in xsl:namespace-alias */
  447. public static final String ATTRVAL_DEFAULT_PREFIX = "#default";
  448. /** Integer equivalents for above */
  449. public static final int NUMBERLETTER_ALPHABETIC = 1, NUMBERLETTER_TRADITIONAL = 2;
  450. /** Integer equivelents for above */
  451. public static final int NUMBERLEVEL_SINGLE = 1, NUMBERLEVEL_MULTI = 2,
  452. NUMBERLEVEL_ANY = 3, MAX_MULTI_COUNTING_DEPTH = 32;
  453. /** some stuff for my patterns-by-example */
  454. public static final String ATTRVAL_THIS = ".", ATTRVAL_PARENT = "..",
  455. ATTRVAL_ANCESTOR = "ancestor", ATTRVAL_ID = "id";
  456. /** Stuff for sorting */
  457. public static final String ATTRVAL_DATATYPE_TEXT = "text",
  458. ATTRVAL_DATATYPE_NUMBER = "number",
  459. ATTRVAL_ORDER_ASCENDING = "ascending",
  460. ATTRVAL_ORDER_DESCENDING = "descending",
  461. ATTRVAL_CASEORDER_UPPER = "upper-first",
  462. ATTRVAL_CASEORDER_LOWER = "lower-first";
  463. /** Integer equivelents for DATATYPE attribute */
  464. public static final int SORTDATATYPE_TEXT = 1, SORTDATATYPE_NUMBER = 2;
  465. /** Integer equivelents for ORDER attribute */
  466. public static final int SORTORDER_ASCENDING = 1, SORTORDER_DESCENDING = 2;
  467. /** Integer equivelents for CASE-ORDER attribute */
  468. public static final int SORTCASEORDER_UPPERFIRST = 1, SORTCASEORDER_LOWERFIRST = 2;
  469. /** some stuff for Decimal-format */
  470. public static final String ATTRVAL_INFINITY = "Infinity",
  471. ATTRVAL_NAN = "NaN",
  472. DEFAULT_DECIMAL_FORMAT = "#default";
  473. /** temp dummy */
  474. public static final String ATTRNAME_XXXX = "XXXX";
  475. }