Beispiel #1
0
 def visit_any_attribute(self, node, parent):
     """
         <anyAttribute
           id = ID
           namespace = ((##any | ##other) |
             List of (anyURI | (##targetNamespace | ##local))) : ##any
           processContents = (lax | skip | strict): strict
           {any attributes with non-schema Namespace...}>
         Content: (annotation?)
         </anyAttribute>
     """
     process_contents = node.get('processContents', 'strict')
     return xsd_elements.AnyAttribute(process_contents=process_contents)
Beispiel #2
0
    def visit_any_attribute(self, node, parent):
        """
        Definition::

            <anyAttribute
              id = ID
              namespace = ((##any | ##other) |
                List of (anyURI | (##targetNamespace | ##local))) : ##any
              processContents = (lax | skip | strict): strict
              {any attributes with non-schema Namespace...}>
            Content: (annotation?)
            </anyAttribute>

        :param node: The XML node
        :type node: lxml.etree._Element
        :param parent: The parent XML node
        :type parent: lxml.etree._Element

        """
        process_contents = node.get("processContents", "strict")
        return xsd_elements.AnyAttribute(process_contents=process_contents)