OFBiz
  1. OFBiz
  2. OFBIZ-4772

xml validation: Invalid attribute width in /ofbiz/applications/product/widget/catalog/ImageManagementForms.xml

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:
      None

      Description

      Hi

      Validation of /ofbiz/applications/product/widget/catalog/ImageManagementForms.xml leads to a error
      Description Resource Path Location Type
      cvc-complex-type.3.2.2: Attribute 'width' is not allowed to appear in element 'image'. ImageManagementForms.xml /ofbiz/applications/product/widget/catalog line 412 XML Problem

      Rgds

      1. ofbiz.patch
        0.6 kB
        Francis ANDRE

        Activity

        Hide
        Francis ANDRE added a comment -

        Index: framework/widget/dtd/widget-form.xsd
        ===================================================================
        — framework/widget/dtd/widget-form.xsd (revision 1306524)
        +++ framework/widget/dtd/widget-form.xsd (working copy)
        @@ -938,6 +938,7 @@
        <xs:attribute type="xs:string" name="default-value"/>
        <xs:attribute type="xs:string" name="description"/>
        <xs:attribute type="xs:string" name="alternate"/>
        + <xs:attribute type="xs:positiveInteger" name="width"/>
        </xs:attributeGroup>
        <xs:element name="lookup" substitutionGroup="AllFields">
        <xs:complexType>

        Show
        Francis ANDRE added a comment - Index: framework/widget/dtd/widget-form.xsd =================================================================== — framework/widget/dtd/widget-form.xsd (revision 1306524) +++ framework/widget/dtd/widget-form.xsd (working copy) @@ -938,6 +938,7 @@ <xs:attribute type="xs:string" name="default-value"/> <xs:attribute type="xs:string" name="description"/> <xs:attribute type="xs:string" name="alternate"/> + <xs:attribute type="xs:positiveInteger" name="width"/> </xs:attributeGroup> <xs:element name="lookup" substitutionGroup="AllFields"> <xs:complexType>
        Hide
        Erwan de FERRIERES added a comment -

        Hi Francis,

        to be included in OFBiz, your patch should be attached to the JIRA issue and the license granted.

        Thanks,

        Show
        Erwan de FERRIERES added a comment - Hi Francis, to be included in OFBiz, your patch should be attached to the JIRA issue and the license granted. Thanks,
        Hide
        Jacques Le Roux added a comment -

        Thanks for report Francis,

        I have not applied your patch but rather Replaced width="200" by style="cssImgXLarge" for images". Anyway I don't think the width attribute was handled in form fields (hence the miss in XSD, which should rather seen as the model)

        Show
        Jacques Le Roux added a comment - Thanks for report Francis, I have not applied your patch but rather Replaced width="200" by style="cssImgXLarge" for images". Anyway I don't think the width attribute was handled in form fields (hence the miss in XSD, which should rather seen as the model)

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Francis ANDRE
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development