home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _B23CDAC0C39E4DFFBC6266D730770E5B < prev    next >
Encoding:
Extensible Markup Language  |  2002-05-23  |  7.8 KB  |  281 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!-- 
  4.    This DTD has been developed in order to provide entry helpers for XSLT documents 
  5.    conformant to the W3C XSLT 1.0 Recommendation.
  6.    
  7.    ┬⌐ Altova GmbH, 1999-2002. 
  8. -->
  9.  
  10. <!ENTITY % xhtml-dtd PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  11.                    "xhtml1-transitional.dtd">
  12. %xhtml-dtd; 
  13.  
  14. <!--XSL Begins here-->
  15. <!ENTITY % result-elements "a|abbr|acronym|address|applet|area|b|base|basefont|bdo|big|blockquote|body|br|button|caption|center|cite|code|col|colgroup|dd|del|dfn|dir|div|dl|dt|em|fieldset|font|form|h1|h2|h3|h4|h5|h6|head|hr|html|i|iframe|img|input|ins|isindex|kbd|label|legend|li|link|map|menu|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var">
  16. <!ENTITY % char-instructions "xsl:apply-templates
  17.   | xsl:call-template
  18.   | xsl:apply-imports
  19.   | xsl:for-each
  20.   | xsl:value-of
  21.   | xsl:copy-of
  22.   | xsl:number
  23.   | xsl:choose
  24.   | xsl:if
  25.   | xsl:text
  26.   | xsl:copy
  27.   | xsl:variable
  28.   | xsl:message
  29.   | xsl:fallback">
  30. <!ENTITY % instructions "%char-instructions;
  31.   | xsl:processing-instruction
  32.   | xsl:comment
  33.   | xsl:element
  34.   | xsl:attribute">
  35. <!ENTITY % char-template "(#PCDATA |
  36.   %char-instructions;)*">
  37. <!ENTITY % template "(#PCDATA |
  38.   %instructions; |
  39.   %result-elements;)*">
  40. <!-- Used for the type of an attribute value that is a URI reference.-->
  41. <!ENTITY % URI "CDATA">
  42. <!-- Used for the type of an attribute value that is a pattern.-->
  43. <!ENTITY % pattern "CDATA">
  44. <!-- Used for the type of an attribute value that is an
  45.      attribute value template.-->
  46. <!ENTITY % avt "CDATA">
  47. <!-- Used for the type of an attribute value that is a QName; the prefix
  48.      gets expanded by the XSLT processor. -->
  49. <!ENTITY % qname "NMTOKEN">
  50. <!-- Like qname but a whitespace-separated list of QNames. -->
  51. <!ENTITY % qnames "NMTOKENS">
  52. <!-- Used for the type of an attribute value that is an expression.-->
  53. <!ENTITY % expr "CDATA">
  54. <!-- Used for the type of an attribute value that consists
  55.      of a single character.-->
  56. <!ENTITY % char "CDATA">
  57. <!-- Used for the type of an attribute value that is a priority. -->
  58. <!ENTITY % priority "NMTOKEN">
  59. <!ENTITY % space-att "xml:space (default|preserve) #IMPLIED">
  60. <!-- This may be overridden to customize the set of elements allowed
  61. at the top-level. -->
  62. <!ENTITY % top-level "(xsl:import*,
  63.   (xsl:include
  64.   | xsl:strip-space
  65.   | xsl:preserve-space
  66.   | xsl:output
  67.   | xsl:key
  68.   | xsl:decimal-format
  69.   | xsl:attribute-set
  70.   | xsl:variable
  71.   | xsl:param
  72.   | xsl:template
  73.   | xsl:namespace-alias
  74.   | %result-elements;)*)">
  75. <!ENTITY % top-level-atts 'extension-element-prefixes CDATA #IMPLIED
  76.   exclude-result-prefixes CDATA #IMPLIED
  77.   id ID #IMPLIED
  78.   version NMTOKEN #REQUIRED
  79.   xmlns:xsl CDATA #FIXED "http://www.w3.org/1999/XSL/Transform"
  80.   %space-att;'>
  81. <!-- This entity is defined for use in the ATTLIST declaration
  82. for result elements. -->
  83. <!ENTITY % result-element-atts 'xsl:extension-element-prefixes CDATA #IMPLIED
  84.   xsl:exclude-result-prefixes CDATA #IMPLIED
  85.   xsl:use-attribute-sets %qnames; #IMPLIED
  86.   xsl:version NMTOKEN #IMPLIED'>
  87. <!ELEMENT xsl:stylesheet %top-level;>
  88. <!ATTLIST xsl:stylesheet
  89.     %top-level-atts; 
  90. >
  91. <!ELEMENT xsl:transform %top-level;>
  92. <!ATTLIST xsl:transform
  93.     %top-level-atts; 
  94. >
  95. <!ELEMENT xsl:import EMPTY>
  96. <!ATTLIST xsl:import
  97.     href %URI; #REQUIRED
  98. >
  99. <!ELEMENT xsl:include EMPTY>
  100. <!ATTLIST xsl:include
  101.     href %URI; #REQUIRED
  102. >
  103. <!ELEMENT xsl:strip-space EMPTY>
  104. <!ATTLIST xsl:strip-space
  105.     elements CDATA #REQUIRED
  106. >
  107. <!ELEMENT xsl:preserve-space EMPTY>
  108. <!ATTLIST xsl:preserve-space
  109.     elements CDATA #REQUIRED
  110. >
  111. <!ELEMENT xsl:output EMPTY>
  112. <!ATTLIST xsl:output
  113.     method %qname; #IMPLIED
  114.     version NMTOKEN #IMPLIED
  115.     encoding CDATA #IMPLIED
  116.     omit-xml-declaration (yes | no) #IMPLIED
  117.     standalone (yes | no) #IMPLIED
  118.     doctype-public CDATA #IMPLIED
  119.     doctype-system CDATA #IMPLIED
  120.     cdata-section-elements %qnames; #IMPLIED
  121.     indent (yes | no) #IMPLIED
  122.     media-type CDATA #IMPLIED
  123. >
  124. <!ELEMENT xsl:key EMPTY>
  125. <!ATTLIST xsl:key
  126.     name %qname; #REQUIRED
  127.     match %pattern; #REQUIRED
  128.     use %expr; #REQUIRED
  129. >
  130. <!ELEMENT xsl:decimal-format EMPTY>
  131. <!ATTLIST xsl:decimal-format
  132.     name %qname; #IMPLIED
  133.     decimal-separator %char; "."
  134.     grouping-separator %char; ","
  135.     infinity CDATA "Infinity"
  136.     minus-sign %char; "-"
  137.     NaN CDATA "NaN"
  138.     percent %char; "%"
  139.     per-mille %char; "‰"
  140.     zero-digit %char; "0"
  141.     digit %char; "#"
  142.     pattern-separator %char; ";"
  143. >
  144. <!ELEMENT xsl:namespace-alias EMPTY>
  145. <!ATTLIST xsl:namespace-alias
  146.     stylesheet-prefix CDATA #REQUIRED
  147.     result-prefix CDATA #REQUIRED
  148. >
  149. <!ELEMENT xsl:template (#PCDATA | %instructions; | %result-elements; | xsl:param)*>
  150. <!ATTLIST xsl:template
  151.     match %pattern; #IMPLIED
  152.     name %qname; #IMPLIED
  153.     priority %priority; #IMPLIED
  154.     mode %qname; #IMPLIED
  155.     %space-att; 
  156. >
  157. <!ELEMENT xsl:value-of EMPTY>
  158. <!ATTLIST xsl:value-of
  159.     select %expr; #REQUIRED
  160.     disable-output-escaping (yes | no) "no"
  161. >
  162. <!ELEMENT xsl:copy-of EMPTY>
  163. <!ATTLIST xsl:copy-of
  164.     select %expr; #REQUIRED
  165. >
  166. <!ELEMENT xsl:number EMPTY>
  167. <!ATTLIST xsl:number
  168.     level (single | multiple | any) "single"
  169.     count %pattern; #IMPLIED
  170.     from %pattern; #IMPLIED
  171.     value %expr; #IMPLIED
  172.     format %avt; "1"
  173.     lang %avt; #IMPLIED
  174.     letter-value %avt; #IMPLIED
  175.     grouping-separator %avt; #IMPLIED
  176.     grouping-size %avt; #IMPLIED
  177. >
  178. <!ELEMENT xsl:apply-templates (xsl:sort | xsl:with-param)*>
  179. <!ATTLIST xsl:apply-templates
  180.     select %expr; "node()"
  181.     mode %qname; #IMPLIED
  182. >
  183. <!ELEMENT xsl:apply-imports EMPTY>
  184. <!-- xsl:sort cannot occur after any other elements or
  185. any non-whitespace character -->
  186. <!ELEMENT xsl:for-each (#PCDATA | %instructions; | %result-elements; | xsl:sort)*>
  187. <!ATTLIST xsl:for-each
  188.     select %expr; #REQUIRED
  189.     %space-att; 
  190. >
  191. <!ELEMENT xsl:sort EMPTY>
  192. <!ATTLIST xsl:sort
  193.     select %expr; "."
  194.     lang %avt; #IMPLIED
  195.     data-type %avt; "text"
  196.     order %avt; "ascending"
  197.     case-order %avt; #IMPLIED
  198. >
  199. <!ELEMENT xsl:if %template;>
  200. <!ATTLIST xsl:if
  201.     test %expr; #REQUIRED
  202.     %space-att; 
  203. >
  204. <!ELEMENT xsl:choose (xsl:when+, xsl:otherwise?)>
  205. <!ATTLIST xsl:choose
  206.     %space-att; 
  207. >
  208. <!ELEMENT xsl:when %template;>
  209. <!ATTLIST xsl:when
  210.     test %expr; #REQUIRED
  211.     %space-att; 
  212. >
  213. <!ELEMENT xsl:otherwise %template;>
  214. <!ATTLIST xsl:otherwise
  215.     %space-att; 
  216. >
  217. <!ELEMENT xsl:attribute-set (xsl:attribute)*>
  218. <!ATTLIST xsl:attribute-set
  219.     name %qname; #REQUIRED
  220.     use-attribute-sets %qnames; #IMPLIED
  221. >
  222. <!ELEMENT xsl:call-template (xsl:with-param)*>
  223. <!ATTLIST xsl:call-template
  224.     name %qname; #REQUIRED
  225. >
  226. <!ELEMENT xsl:with-param %template;>
  227. <!ATTLIST xsl:with-param
  228.     name %qname; #REQUIRED
  229.     select %expr; #IMPLIED
  230. >
  231. <!ELEMENT xsl:variable %template;>
  232. <!ATTLIST xsl:variable
  233.     name %qname; #REQUIRED
  234.     select %expr; #IMPLIED
  235. >
  236. <!ELEMENT xsl:param %template;>
  237. <!ATTLIST xsl:param
  238.     name %qname; #REQUIRED
  239.     select %expr; #IMPLIED
  240. >
  241. <!ELEMENT xsl:text (#PCDATA)>
  242. <!ATTLIST xsl:text
  243.     disable-output-escaping (yes | no) "no"
  244. >
  245. <!ELEMENT xsl:processing-instruction %char-template;>
  246. <!ATTLIST xsl:processing-instruction
  247.     name %avt; #REQUIRED
  248.     %space-att; 
  249. >
  250. <!ELEMENT xsl:element %template;>
  251. <!ATTLIST xsl:element
  252.     name %avt; #REQUIRED
  253.     namespace %avt; #IMPLIED
  254.     use-attribute-sets %qnames; #IMPLIED
  255.     %space-att; 
  256. >
  257. <!ELEMENT xsl:attribute %char-template;>
  258. <!ATTLIST xsl:attribute
  259.     name %avt; #REQUIRED
  260.     namespace %avt; #IMPLIED
  261.     %space-att; 
  262. >
  263. <!ELEMENT xsl:comment %char-template;>
  264. <!ATTLIST xsl:comment
  265.     %space-att; 
  266. >
  267. <!ELEMENT xsl:copy %template;>
  268. <!ATTLIST xsl:copy
  269.     %space-att; 
  270.     use-attribute-sets %qnames; #IMPLIED
  271. >
  272. <!ELEMENT xsl:message %template;>
  273. <!ATTLIST xsl:message
  274.     %space-att; 
  275.     terminate (yes | no) "no"
  276. >
  277. <!ELEMENT xsl:fallback %template;>
  278. <!ATTLIST xsl:fallback
  279.     %space-att; 
  280. >
  281.