Warning, /utilities/kate/addons/xmltools/testcases.xml is written in an unsupported language. File is not indexed.
0001 This is a pseudo XML file to test the functions of the XML Plugin. 0002 v0.8, 2002-04-21 0003 0004 1. Choose "Assign Meta DTD..." and load the file meta-dtd/html4-loose.dtd.xml 0005 0006 2. Place cursor at the "X" and choose "Close Element" from the 0007 "XML Plugin" menu. "</P>" resp. "</p>" should be inserted: 0008 <P> <a href=""> foo <i> test </i> bar </a> X 0009 <P> <a x="xyz"> foo bar </a> X 0010 <P> foo <img foo="&bar;"/> bar X 0011 <P> foo <img/> bar X 0012 <P> foo bar X 0013 <p foo="bar"> 0014 next line, X 0015 <p><!-- foo --> X (again, the "p" should be closed) 0016 <p><? foo ?> X (again, the "p" should be closed) 0017 0018 3. Place cursor after (outside) the tag and select "Insert Element...". The listed 0019 sub-elements should be offered as completion once you start typing. Select one 0020 and it should be inserted, including its closing tag. The cursor should be 0021 placed behind the tag name in the opening tag. The same thing should work 0022 if you just type "<" outside the tag: 0023 <a> abbr, acronym, ....(i.e. no "a", as it cannot be nested!) 0024 <A> abbr, acronym, .... 0025 <P foo="bar"> a, abbr, acronym, ... 0026 <textarea>, (no possible sub-elements) 0027 0028 4. Place cursor inside the element, but after the element name and outside the 0029 attribute values. Press space. A list of attributes should be displayed. Select one and 0030 it should be inserted, including the = and two quotation marks. The cursor should be 0031 placed inside the quotation marks: 0032 <a> accesskey, charset, ... 0033 <a href="foo"> accesskey, charset, ... 0034 <img href="foo" /> align, alt, border, ... 0035 <html> dir, lang, version 0036 0037 5. Place cursor inside the attribute values and press space. A List of 0038 attribute values should be displayed. Select one and it should be inserted at 0039 the current cursor position, replacing the old value: 0040 <td align=""> center, char, justify, left, right 0041 <td valign=""> baseline, bottom, middle, top 0042 <td valign="foobar"> -- "foobar" should be replaced 0043 <area shape=""> circle, default, poly, rect 0044 <area foobar=""> (no predefined values) 0045 0046 6. Type "&". A list with named entities should appear. Select one and 0047 it should be inserted, including the trailing semicolon. 0048 0049 7. Test that SGML (that is HTML, really) is treated as case-insensitive: 0050 <TD AligN="center"> 0051 <Td AligN="justify"> 0052 <td AligN="leftcenter"> 0053 <TD align=""> 0054 0055 8. Single quotes work just like double quotes, whitespace inside element tags is okay: 0056 <td align='right'> 0057 <td align=''> 0058 <td 0059 align=""> 0060 0061 9. Current limitations: trigger completion at "X": 0062 <a href="foo"> blah <em>X -- <a> inside <a> is not allowed, but this limitation is not 0063 part of the DTD, so the plugin will incorrectly claim that <a> is allowed at "X". 0064 <head><title> foobar</title> X -- <title> is only allowed once, but the plugin 0065 only looks for the parent element (<head> in this case) and ignores the existing <title>. 0066 <a href="foo" X > -- an attribute may only appear once, but "href" is listed by the plugin 0067 although it's used already. 0068 <td align = "X"> -- whitespace around '=' is not recognized although it's legal. 0069 0070 10. Use "Assing Meta DTD..." to switch to kde-dockbook.dtd.xml. Try the above steps 0071 on the following tags: 0072 <author lang=""> 0073 <surname>