Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change "NDAttributes.xsd" to support .xml containing macro characters, $, (, ) #512

Open
cpchuang opened this issue Sep 18, 2024 · 1 comment

Comments

@cpchuang
Copy link

current "NDAttributes.xsd" invalidate .xml files containing $, (, )

Validating xml file against "./XML_schema/NDAttributes.xsd"
Attri_ADsim.xml:9: element Attribute: Schemas validity error : Element 'Attribute', attribute 'source': '$(P)cam1:Manufacturer_RBV' is not a valid value of the union type 'type_source'.

After discussing with @prjemian , propose the following changes to include $, (, ),

    <xs:restriction base="xs:string"> <!-- Changed from xs:NMTOKEN to xs:string -->
      <xs:pattern value="[\w_\-:.;\$\(\)]+([.][A-Z0-9]+)?"/>   <!-- include $, (, ),  -->
    </xs:restriction>
  </xs:simpleType>
@cpchuang
Copy link
Author

for clarity,
Here is the example attributes.xml
image

and how macro is added in AD.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant