Re: NVDL?

Hi,

oNVDL indeed implements the NVDL dispatching part in XSLT 2.0 but that 
was thought to give an insight of how NVDL works and to show the 
similarities with the XSLT processing. There are some limitations of 
that implementation documented on the oNVDL page
http://www.oxygenxml.com/onvdl.html
***
The XSLT 2.0 implementation of NVDL dispatching does not implement in 
the current version 20070517 the following:

     * Point 8.6. Stage 4: Filtering of the combined sections (from the 
specification)
     * Support for cancelNestedActions
     * Support for included modes
***

Integrating that processing as an XProc pipeline would be an interesting 
exercise but I do not know XProc enough to assert if that is possible or 
not. The main issue will be to perform the validate actions on each 
fragment from a document like the sample below:

<?xml version="1.0" encoding="UTF-8"?>
<n:dispatch xmlns:n="http://www.oxygenxml.com/nvdl">
    <n:validate schema="../schemas/xhtml/xhtml.rng">
       <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
             <title>Sample XHTML with embedded RDF</title>
          </head>
          <body>
             <h1>Sample NVDL usage</h1>
             <p>Sample XHTML with embedded RDF</p>
          </body>
       </html>
    </n:validate>
    <n:validate xmlns="http://www.w3.org/1999/xhtml" 
schema="../schemas/rdf/rdfxml.rng">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:dc="http://purl.org/dc/elements/1.1/">
          <rdf:Description 
rdf:about="http://www.oxygenxml.com/onvdl/sample/xhtml-rdf/xhtml-rdf.xml">
             <dc:title>Sample NVDL usage</dc:title>
             <dc:description>Sample NVDL usage showing the usage of RDF 
inside XHTML.</dc:description>
             <dc:publisher>Syncro Soft</dc:publisher>
             <dc:subject>
                <rdf:Bag>
                   <rdf:li>Schema languages</rdf:li>
                   <rdf:li>NVDL sample</rdf:li>
                   <rdf:li>XHTML and RDF</rdf:li>
                </rdf:Bag>
             </dc:subject>
             <dc:type>World Wide Web Page</dc:type>
             <dc:format>text/html</dc:format>
             <dc:language>en</dc:language>
          </rdf:Description>
       </rdf:RDF>
    </n:validate>
</n:dispatch>

I believe however that it will be a lot simpler and better to just have 
a p:nvdl step implemented with one of the available Java NVDL engines.

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Received on Thursday, 25 September 2008 07:21:56 UTC