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

conflicting id value in elements across mulitple shtml #120

Open
SmartLayer opened this issue Apr 24, 2019 · 0 comments
Open

conflicting id value in elements across mulitple shtml #120

SmartLayer opened this issue Apr 24, 2019 · 0 comments
Assignees

Comments

@SmartLayer
Copy link

SmartLayer commented Apr 24, 2019

Pull request #119 revealed a related issue. In the old XSLT model, the id attribute of html elements are only assembled into an HTML file when needed. In the current mode, thus multiple xslt files can have elements of the same type. With the switch away from xslt, shtml, on the other hand, is an internal part of TokenScript and can't have duplicated values in id element. None of our current working examples have hit this issue, but if unsolved, in the future someone will get stuck there - his TokenScript doesn't validate as he used one value for different id attributes in different shtml.

https://docstore.mik.ua/orelly/xml/schema/ch08_02.htm showed a way to modify schema which probably can be used to change the type of id element from xs:ID to a normal identifier without uniqueness constraint. We can attempt that as a fix in 2019/05 namespace.

@SmartLayer SmartLayer self-assigned this Apr 24, 2019
@SmartLayer SmartLayer changed the title conflicting id elements in shtml conflicting id value in elements across mulitple shtml Apr 24, 2019
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