Hi, Thank you for your very comprehensive response to my request. My colleague (who has a Windows 2000 machine) found your example3 to be very helpful and has had some success in integrating the use of the stylesheet to produce a styled rendering in our own XML documents.
Only a couple of questions remain. One is, how can we specify column widths in tables in styled view. My colleague has tried colspec and colwidth mentioned under table rendering in the help but with no success. Does this, perhaps, apply only to XHTML files? If you could let us have a fragment of code to do this (and whereabouts to put it in the file) it would be much appreciated. The only other thing (perhaps a wish-list item for the future) would be for a "Refresh" feature to refresh the styled view following a change in the css. Thank you for your help. XXE looks very promising and we are joining the public discussion list. Kind regards John JOHN MOBBS Documentation Manager Drake Electronics Ltd. 26-28 Hydeway Welwyn Garden City Hertfordshire AL7 3UQ United Kingdom +44 (0)1727 871133 (Direct Line) www.drake-uk.com -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Tuesday, 03 December, 2002 02:21 PM To: John Mobbs Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] Problem with styled view John Mobbs wrote: > > I am running XXE Standard Edition V2.0p1 under Windows 98 Second Edition. I > have done the tutorial, examined both the Help and the Poweruser guide and > read the FAQs on your website. > > I have opened both poweruser example1 and example2 and, even thought the xxe > specifies a css, they still do not enable styled view. I have tried opening > files (which have stylesheets called using the <?xml-stylesheet PI) which > have been produced in other XML applications. They do not enable styled > view in XXE. First, you should really turn on the option of Windows which displays the extension of file names in the Explorer. For example, you can open both example1.xxe and example1.xml using XXE and example1.xxe cannot be displayed using a styled view. This said, have you copied the example1/ and example2/ subdirectories of poweruser/samples/ to the config/ directory of XXE? For example, if you have installed XXE in C:\Program Files\XMLmind_XML_Editor, copy the example1 and example2 directories to C:\Program Files\XMLmind_XML_Editor\config If this is not the case, please do so and you'll see that menu item File|New... will display a dialog box having Example1/Template and Example2/Template entries. Clicking on either of these entries will open a styled view of a new Example1 or Example2 document. > I don't understand why some files (for example, userguide.xml) display in a > styled view when no CSS (or XSL) is called in the XML and there is no > userguide.xxe. Where is styled view getting its formatting information from > in this situation? userguide.xml is detected by XXE as being a XML file for which configuration docbook.xxe must be used. docbook.xxe is found in C:\Program Files\XMLmind_XML_Editor\config\docbook. Other example: userguide.xhtml is detected by XXE as being a XML file for which configuration xhtml.xxe must be used. xhtml.xxe is found in C:\Program Files\XMLmind_XML_Editor\config\xhtml. XXE configuration files are used to specify the behavior of XXE for a class of documents. These configuration files always begin with a detect clause. XXE uses the detect clause to check if the document being loaded belongs to the class of document for which the configuration file has been written. If this is not the case, XXE tries another configuration file until it finds the right one. > You say in both help and poweruser that styled view can be enabled by the > use of <?xml-stylesheet .......?> in the XML file. I am unable to find any > examples of this in the distribution. The string "<?xml-stylesheet" is not > present in any of the xml files supplied. This is true, because even if it works, using <?xml-stylesheet?> is not the recommended way to doing things. > If you could help me on this, perhaps supply a pair of XML and CSS which > correctly enable styled view and which I can use as templates, I should be > grateful. See attached zip file. PS: XXE is not supported on the Windows 9x platform, only on Windows NT/2000/XP. *

