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

Melhorar a resposta da validação de node[@id] com xref[@rid] #593

Open
robertatakenaka opened this issue Apr 12, 2024 · 0 comments
Open
Assignees

Comments

@robertatakenaka
Copy link
Member

Descrição da tarefa

  1. Em
    ids.add(node.get('id'))

    Adiciona o nome da tag ao retorno. No lugar de ids.add(node.get('id')), use ids.add((node.get('id'), node.tag))

  1. Troque a mensagem:
    item['advice'] = None if validated else 'For each @id="{}" must have at least one corresponding element which xref[@rid="{}"]'.format(id, id)

    Remover element which da mensagem
'For each @id="{}" must have at least one corresponding element which xref[@rid="{}"]'.format(id, id)

Adicionar:

'For each {}/@id="{}" must have at least one corresponding xref[@rid="{}"]'.format(node_tag, id, id)
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

2 participants