[wpkg-users] [Bug 249] New: XML validation raises errors

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Thu Oct 27 21:38:11 CEST 2011


http://bugzilla.wpkg.org/show_bug.cgi?id=249

           Summary: XML validation raises errors
           Product: WPKG
           Version: other
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: pendl2megabit at yahoo.de
         QAContact: wpkg-users at lists.wpkg.org


Hi Rainer,

First thank you for including the validation strings in the latest examples,
which have allowed me to validate successfully using the xsd files through
notepad++ ;-D

Being able to validate the XML files I now encounter the following errors:

1)
ERROR: Element '{http://www.wpkg.org/packages}condition': This element is not
expected. Expected is ( {http://www.wpkg.org/wpkg}condition ).

    <package id="Java"
            name="Java"
            revision="2011.10.22"
            reboot="false"
            priority="10"
            execute="once">

        <include package-id="JRE6">
            <condition>
                <check type="logical" condition="or">
                    <check type="host" condition="hostname" value="SATELLITE"/>
                    <check type="host" condition="os" value="5\.0\.\d{4}"/>
                </check>
            </condition>
        </include>
        <include package-id="JRE7">
            <condition>
                <check type="logical" condition="not">
                    <check type="logical" condition="or">
                        <check type="host" condition="hostname"
value="SATELLITE"/>
                        <check type="host" condition="os" value="5\.0\.\d{4}"/>
                    </check>
                </check>
            </condition>
        </include>
    </package>

2)
ERROR: Element '{http://www.wpkg.org/packages}command', attribute 'include':
[facet 'enumeration'] The value 'shared' is not an element of the set
{'install', 'upgrade', 'downgrade', 'remove'}.
ERROR: Element '{http://www.wpkg.org/packages}command', attribute 'include':
'shared' is not a valid value of the local atomic type.

    <package
            id="NotepadPlusPlus"
            name="Notepad++"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="30">

        <variable name="PKG_NAME"        value="NotepadPlusPlus" />
        <variable name="PKG_VERSION"     value="5.9.5" />
        <variable name="PKG_VERSION"     value="5.9.5" hostname="^VM\-" />
        <variable name="PKG_DESTINATION" value="%ProgramFiles%\Notepad++"     
architecture="x86"/>
        <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\Notepad++"
architecture="x64"/>

        <check type="uninstall" condition="versiongreaterorequal"
path="Notepad++"                       value="%PKG_VERSION%" />
        <check type="file"      condition="versiongreaterorequal"
path="%PKG_DESTINATION%\notepad++.exe" value="%PKG_VERSION%" />

        <commands>
            <!-- remove plug-in's to prevent installer hang -->
            <command type="shared" cmd='%ComSpec% /c if exist
"%PKG_DESTINATION%\plugins" for %F in ( "%PKG_DESTINATION%\plugins\*.dll" ) do
@del /f /q "%~F"' />

            <command type="install" include="shared" />
            <command type="install"
cmd="%SOFTWARE%\Notepad-plus-plus\npp.%PKG_VERSION%.Installer.exe /S" />

            <command type="upgrade" include="install" />

            <command type="remove" include="shared" />
            <command type="remove" cmd='"%PKG_DESTINATION%\uninstall.exe" /S
_?=%PKG_DESTINATION%' />
            <command type="remove" cmd='%ComSpec% /C if exist
"%PKG_DESTINATION%\uninstall.exe" del /f /q "%PKG_DESTINATION%\uninstall.exe"'
/>
            <command type="remove" cmd='%ComSpec% /C if exist
"%PKG_DESTINATION%" rmdir /q /s "%PKG_DESTINATION%"' />
        </commands>
    </package>

Hope I do not pester you to death,
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list