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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOTJ049W should help me to find the not compliant attribute value #4469

Open
stefan-jung opened this issue Apr 30, 2024 · 1 comment
Open
Labels
enhancement Changes to an existing feature

Comments

@stefan-jung
Copy link
Contributor

Expected Behavior

It would be nice, if DOTJ049W would help me to identify the not compliant value.

Actual Behavior

It's quite tricky to identify the attribute value. How long do you need to spot wrong-value? 馃槃

[DOTJ049W] The attribute value region="emea-AT emea-BE emea-BG emea-CH emea-CZ emea-DE 
emea-DK emea-EE emea-ES emea-FI emea-FR emea-GB emea-GE emea-GR emea-HR emea-HU emea-IS 
emea-IT emea-LT emea-LV emea-MK emea-NL emea-NO emea-PL emea-PT emea-RO emea-RS emea-RU 
emea-SE emea-SI emea-SK wrong-value emea-TR emea-UA" on element "qr-code" does not comply with 
the specified subject scheme. According to the subject scheme map, the following values 
are valid for the region attribute: emea-middle-east,emea-europe,emea-GR,apac-ID,americas,
emea-SK,emea-GB,emea-GE,americas-CA,emea-CH,emea-LT,emea-DK,emea-HR,emea-LV,emea-UA,emea-HU,
apac-australasia,apac-VN,apac-AU,emea-CZ,emea-PL,emea-TR,apac-MY,emea-DE,apac,emea-PT,emea-IS,
apac-asia,americas-AR,emea-IT,emea-ES,emea-EU,emea-AT,americas-MX,emea-MK,apac-NZ,emea-EE,
americas-US,emea-EG,apac-JP,emea-IL,apac-TW,americas-BR,emea-FR,emea-SE,emea,emea-SI,apac-TH,
emea-NL,emea-RO,apac-CN,emea-NO,emea-RS,apac-KR,emea-BE,emea-FI,emea-RU,emea-BG

Actual Behavior

  • DITA-OT version: 4.x
  • Operating system and version: Windows
  • How did you run DITA-OT? oXygen
  • Transformation type: PDF
@jelovirt jelovirt added enhancement Changes to an existing feature and removed bug labels May 2, 2024
@jelovirt
Copy link
Member

jelovirt commented May 6, 2024

@infotexture We could change the message from

The attribute value region="foo" on element "p" does not comply with the specified subject scheme. According to the subject scheme map, the following values are valid for the region attribute: bar, baz

to something like

The attribute value region="foo" on element "p" does not comply with the specified subject scheme. According to the subject scheme map, the following values are not valid for the region attribute: foo

So report the error, not what would be valid.

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

No branches or pull requests

2 participants