concretecms / concrete-cif

Validation of Concrete CIF files
MIT License
1 stars 1 forks source link

"Attribute handle is not allowed here" in PHPStorm #33

Open KorvinSzanto opened 5 months ago

KorvinSzanto commented 5 months ago

image

Try the following example:

<?xml version="1.0" encoding="UTF-8"?>
<concrete5-cif
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="https://github.com/concretecms/concrete-cif/releases/latest/download/concrete-cif-1.0.xsd"
   version="1.0">
    <singlepages>
        <page name="" path="">
            <attributes>
                <attributekey handle="exclude_nav">
                    <value><![CDATA[1]]></value>
                </attributekey>
            </attributes>
        </page>
    </singlepages>
</concrete5-cif>
mlocati commented 5 months ago

Does phstorm understand xsd 1.1 or just 1.0?

mlocati commented 5 months ago

You can try LiquidStudio, which has an option to use the xsd 1.1 flavor of xerces-j (which AFAIK is the only open source library that supports xsd 1.1)