Page 1 of 1

oxygen append child and nvdl

Posted: Thu Aug 09, 2007 12:52 am
by queshaw
I think there might be an inconvenient feature of the editor when using nvdl.

For example:


namespace a = "http://a"
start = doc
doc = element a:doc { sec }
sec = element a:sec { empty }


<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="">
<namespace ns="http://a">
<validate schema="xsltwrap.rnc" schemaType="application/x-rnc">
<namespace ns="">
<validate schema="xslt20.rnc" schemaType="application/x-rnc"/>


<?xml version="1.0" encoding="UTF-8"?>
<doc xmlns="http://a">
<xsl:transform version="2.0" xmlns:xsl=""/>

If I right click on doc in the outline, append child suggests the XSLT elements as well as the elements from xsltwrap.rnc. If I enter copy for example, it then indicates that copy doesn't belong in that context.

This is using oxygen 8.2.

Posted: Thu Aug 09, 2007 2:12 pm
by george

That is because we provide the content completion right now using a few heuristics that try to see what proposals different schemas offer in different contexts and as a result it may offer more than only the valid proposals.
I wrote an internal documentation about what we will need to be able to offer valid proposals exactly as described by the NVDL rules but that is not yet implemented - and it is not a trivial task either.

Best Regards,