On 08/03/2011 03:17 PM, Manuel Collado wrote: > El 03/08/2011 13:22, Hussein Shafie escribió: >> On 08/03/2011 11:09 AM, Benoit Maisonny wrote: >>> >>> Do you have any plan to support NVDL? >> ... >> We have implemented our poor man's NVDL: the<validate> configuration >> element. See >> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/validate.html >> >> We currently use this feature: >> >> * to ``inject'' the MathML schema into the DITA DTD and the DocBook 5 >> RELAX NG schema. >> >> * to ``inject'' the XHTML DTD into various schemas such as the Schema >> for W3C XML Schemas (this allows us to document a W3C XML schema using >> XHTML). >> ... >> However, you cannot use this feature unless: >> >> [1] Your DTD has an ANY element which can be used to host x elements. >> More generally the main schema must have elements which can be used to >> host elements coming from the secondary schemas. >> >> [2] The XML Schema for "x" has a target namespace. Notice that the >> <validate> configuration element requires one --and only one-- >> namespace. However XXE supports several different<validate> >> configuration elements in the same configuration file. > > Is it possible to use this feature for editing XSLT code? Typically for > transformations that generate XHTML.
Clearly no. Full NVDL support would be needed for that because your XSLT stylesheet will intermix XSLT and XHTML elements: XSLT elements contain XHTML elements which contain XSLT elements which contain XHTML elements, etc Our <validate> configuration element just allows to have ``islands'' of one or more secondary XML vocabularies contained in an ``ocean'' of main XML vocabulary. > > As a related issue, is it possible to CSS-style such XSLT stylesheets in > the editing pane, for both XSLT and XHTML tags at the same time? Our CSS engine does not care about the validity of the XML. Therefore in theory, the answer is yes. However, XMLmind XML Editor is really not the editor of choice when it comes to developing XSLT stylesheets[*]. Personally, I use XMLmind XML Editor for all the narrative I write but I use (and really appreciate) Emacs+nxml-mode when I develop XSLT 1 or XSLT 2 stylesheets. More info about Emacs+nxml-mode: http://www.thaiopensource.com/nxml-mode/ > > Thanks in advance, --- [*] I have ready-to use XXE configurations for XSLT 1 and for XSLT 2 if you want to check that by yourself. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

