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

When there are two alternative regex patterns, allowed attribute values are displayed incorrectly in HTML attributes table #67

Open
ghost opened this issue Jan 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 10, 2022

Given my example RNG, there is a conversion issue where attributes table only displays one of two alternative patterns. However, the SVG diagram correctly shows both patterns (although it displays both with the label "token", so while correct, that's not too helpful either in the end).

  <define name="pattern1">
    <data type="token">
      <param name="pattern">A_PATTERN</param>
    </data>
  </define>
  <define name="pattern2">
    <data type="token">
      <param name="pattern">ANOTHER_PATTERN</param>
    </data>
  </define>

[....]


  <define name="ds.myelement">
    <element name="myelement">
      <attribute name="myattribute">
        <choice>
          <ref name="pattern2"/>
          <ref name="pattern1"/>
        </choice>
      </attribute>
      <empty/>
    </element>
  </define>

The attribute table for myelement's myattribute then claims that only pattern2 (the one mentioned first within <choice/>) is present:

Data typetoken
ParametersANOTHER_PATTERN
@ghost ghost added the bug Something isn't working label Jan 10, 2022
@ghost ghost changed the title Allowed attribute values are displayed incorrectly in HTML attributes table When there are two alternative regex patterns, allowed attribute values are displayed incorrectly in HTML attributes table Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants