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: Trunk
    • Fix Version/s: 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

        Francis ANDRE created issue -
        Francis ANDRE made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        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,
        Francis ANDRE made changes -
        Attachment ofbiz.patch [ 12520496 ]
        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)
        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Assignee Jacques Le Roux [ jacques.le.roux ]
        Fix Version/s SVN trunk [ 12311928 ]
        Resolution Invalid [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        11s 1 Francis ANDRE 29/Mar/12 17:06
        Patch Available Patch Available Closed Closed
        2d 6h 4m 1 Jacques Le Roux 31/Mar/12 23:11

          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