-
Notifications
You must be signed in to change notification settings - Fork 93
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
DTD elements are not formatted #221
Comments
@NikolasKomonen to support DTD completion #106 I need to improve XMLParser to collect information of DocumentType (see https://en.wikipedia.org/wiki/Document_type_declaration) The general syntax for a document type declaration is:
or
We need not to work together about this parsing feature, so I tell me when you want to work on this format issue. I'm working on DTD completion, so I could start this parsing documenttype feature, but if you have started something, please tell me. Is there any chance that you could work now on this parse feature, because I need it now? If no tell me, I will start something. |
@angelozerr yes, I can start working on the parsing for DTD. Ill start now. |
Thanks @NikolasKomonen! |
@angelozerr Just wanted to check if you needed this as soon as possible, or is it fine if I work on another issue first? |
I can manage with a uggly mean the extract of DTD system uri if you prefere working on another issues. |
@angelozerr Its fine, I'll be able to work on this now. The other issues are fixed now. I just want to be sure, the parser should also cover this, eg: |
For my issue with XML completion based on DTD, I don't need this feature. Me I need to get public, system uri. In otherwords, implement:
My first goal is to support external DTD. I will see after how to support internal DTD (DTD declared in the XML) |
Fixes part of eclipse-lemminx#221 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes part of eclipse-lemminx#221 Doctype parsing setup. Internal DTD not complete, it instead stores as string Signed-off-by: Nikolas Komonen <[email protected]>
@NikolasKomonen I think you can work on this formatting issue now. Now you have 3 new structures:
That you can see in the outline. Now you can use it for format. Don't hesitate to update it to improve it according your need for format. |
@angelozerr Just wondering why you called it 'DOMEntity' and not 'DTDEntity' ? |
I have done this choice because DOMEntity implements org.w3c.dom.Entity. For the other structures ELEMENT and ATTLIST, it doesn't exists interfaces? I don't know why? But if you prefer, we can rename it. @fbricon what do you think about that? |
if DOMEntity is meant to be used outside the context of DTD, then you can keep it. Else, if it's specific to DTD usage, renaming it is fine |
I thinkit's for only DTD. Let's go to rename it. |
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes #221 and #268 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#221 and eclipse-lemminx#268 Signed-off-by: Nikolas Komonen <[email protected]>
Following up on #90, given:
Formatting the document ignores the DOCTYPE content.
The text was updated successfully, but these errors were encountered: