Page 1 of 1

display list of valid elements

Posted: Tue Jul 11, 2023 1:22 pm
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.
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

Re: display list of valid elements

Posted: Tue Jul 11, 2023 1:53 pm
by chrispitude
Hi Smita,

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>
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.

Re: display list of valid elements

Posted: Wed Jul 12, 2023 8:24 am
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

Re: display list of valid elements

Posted: Wed Jul 12, 2023 3:21 pm
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>.

Re: display list of valid elements

Posted: Thu Jul 13, 2023 9:33 am
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

Re: display list of valid elements

Posted: Thu Jul 20, 2023 12:38 pm
by Janeer
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.

Re: display list of valid elements

Posted: Thu Jul 20, 2023 3:45 pm
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.