display list of valid elements
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
display list of valid elements
Post by SmitaPatil »
Hi Team,
In below screenshot, satext is not allowed as per schema but centy and centr are valid elements according to schema.
In oxygen web author, If user keep cursor inside centy which is valid element and try to get list of valid element. Nothing is getting displayed as parent element of centy (satext) is invalid as per schema.
However, we want to display all the valid list of elements if user keep cursor inside valid element and press enter.
Even if its ancestor is invalid but element where cursor is present is valid in that case also we want to display list of elements which are valid to insert at that place as per schema.
Is there any configuration or work around is available in oxygen to achieve this requirement.
Please let me know if you have any doubt or question.
Thanks & Regards,
Smita
In below screenshot, satext is not allowed as per schema but centy and centr are valid elements according to schema.
In oxygen web author, If user keep cursor inside centy which is valid element and try to get list of valid element. Nothing is getting displayed as parent element of centy (satext) is invalid as per schema.
However, we want to display all the valid list of elements if user keep cursor inside valid element and press enter.
Even if its ancestor is invalid but element where cursor is present is valid in that case also we want to display list of elements which are valid to insert at that place as per schema.
image.png
Is there any configuration or work around is available in oxygen to achieve this requirement.
Please let me know if you have any doubt or question.
Thanks & Regards,
Smita
You do not have the required permissions to view the files attached to this post.
Last edited by SmitaPatil on Wed Jul 12, 2023 8:09 am, edited 2 times in total.
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: display list of valid elements
Post by chrispitude »
Hi Smita,
I don't use Oxygen Web Author, but I tried this DITA experiment in Oxygen:
The first <p> is in a valid location, but the second <p> is not. In both cases, the Elements view shows me the valid child elements for <p>.
Maybe you can try this same experiment in Oxygen Web Author, as it will be easier for others to reproduce what you're asking about in something without custom schemas.
I don't use Oxygen Web Author, but I tried this DITA experiment in Oxygen:
Code: Select all
<topic>
<title>My Topic</title>
<body>
<p></p>
<prolog><p></p></prolog>
</body>
</topic>
Maybe you can try this same experiment in Oxygen Web Author, as it will be easier for others to reproduce what you're asking about in something without custom schemas.
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
Re: display list of valid elements
Post by SmitaPatil »
HI Chrispitude,
Thank you for trying.
However, if you see in my example, satext is strike through that means its satext is not valid element according to schema and centy is valid element according to schema.
when I keep cursor inside centy and press enter I am not able to get list of valid elements because even if centy is valid element but it is present inside satext which is invalid element.
I want to get all list of valid elements if I keep cursor inside centy and press enter. even if ancestors of centy is not valid element.
can you confirm once in your example, prolog is valid element or not ?
Thanks & Regards,
Smita
Thank you for trying.
However, if you see in my example, satext is strike through that means its satext is not valid element according to schema and centy is valid element according to schema.
when I keep cursor inside centy and press enter I am not able to get list of valid elements because even if centy is valid element but it is present inside satext which is invalid element.
I want to get all list of valid elements if I keep cursor inside centy and press enter. even if ancestors of centy is not valid element.
can you confirm once in your example, prolog is valid element or not ?
Thanks & Regards,
Smita
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: display list of valid elements
Post by chrispitude »
In my example, <prolog> is not valid in its location, and <p> is not valid inside a <prolog>. Yet in Oxygen (desktop version), if I place my cursor inside the <p> element inside the <prolog>, the Elements view shows me valid child elements of <p>.
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
Re: display list of valid elements
Post by SmitaPatil »
HI Chrispitude,
No here parent element should not be valid. Its not about location. suppose <prolog> is not valid but child element <p> is valid so inside <p> we want to display all valid list of elements.
Thanks & Regards,
Smita
No here parent element should not be valid. Its not about location. suppose <prolog> is not valid but child element <p> is valid so inside <p> we want to display all valid list of elements.
Thanks & Regards,
Smita
-
- Posts: 1
- Joined: Tue Jul 18, 2023 6:40 pm
- Location: Canada
Re: display list of valid elements
Unfortunately, I'm facing a similar problem, and it's driving me nuts! I've double-checked my XML syntax, and everything seems to be in order. I'm using a valid schema, and other XML files using the same schema validate without any issues. Yet, for this particular file, the validation process keeps failing.
Last edited by Janeer on Tue Aug 01, 2023 3:20 pm, edited 2 times in total.
Manager of WorkTime https://www.worktime.com/
-
- Site Admin
- Posts: 172
- Joined: Tue Mar 20, 2018 5:28 pm
Re: display list of valid elements
Post by Bogdan Dumitru »
Hello Janeer,
The issue/thread reported/opened by Smita was about the Content Completion that was not displaying invalid elements. For this see the showAllPossibleElementsInCCList option.
The issue you're describing seems for me a little bit different than the one on this thread, you're saying "validation process keeps failing". If that's indeed true please open another thread and describe the problem you're facing so that we can reproduce it. Otherwise please give us more details.
The issue/thread reported/opened by Smita was about the Content Completion that was not displaying invalid elements. For this see the showAllPossibleElementsInCCList option.
The issue you're describing seems for me a little bit different than the one on this thread, you're saying "validation process keeps failing". If that's indeed true please open another thread and describe the problem you're facing so that we can reproduce it. Otherwise please give us more details.
Bogdan Dumitru
http://www.oxygenxml.com
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service