cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Rephrase Elements

Sriram_Rammohan
1-Newbie

Rephrase Elements

Dear Users,

I have a XML structure as below and have context created as listitem/bulletedlist/stem . Stem is a Para element. Here I wanted bulletedlist to be ignored in .style so that stem does not move to next line (pls see CURRENTOUTPUT) so that it behaves like EXPECTED OP.

In short is it possible to ignore or make a element behave like para . I am using APP Engine.

<orderedList>

<ListItem>

<bulletedList>

<stem> This is STEM Element</stem>

<ListItem> List A </ListItem>

<ListItem> List B </ListItem>

<ListItem> List C </ListItem>

</bulletedList>

</ListItem>

<ListItem>Demo List 2

</ListItem>

</orderedList>



CURRENT OUTPUT :

1

This is STEM Element

  • List A
  • List B
  • List C

2 Demo List 2


EXPECTED OUTPUT :

1 This is STEM Element

  • List A
  • List B
  • List C

2 Demo List 2



Pls advice.


Tnkx

Sriram Rammohan

1 REPLY 1

Although I do not know how your styles are written no how your DTD is structured, but based on your output, I would think you might have better luck as follows:

<orderedList>

<ListItem><stem> This is STEM Element</stem></ListItem>

<bulletedList>

<ListItem> List A </ListItem>

<ListItem> List B </ListItem>

<ListItem> List C </ListItem>

</bulletedList>

<ListItem>Demo List 2

</ListItem>

</orderedList>

Optional

<orderedList>

<ListItem><stem> This is STEM Element</stem></ListItem>

<bulletedList>

<ListItem> <para>List A</para> </ListItem>

<ListItem><para>List B</para> </ListItem>

<ListItem><para>List C</para> </ListItem>

</bulletedList>

<ListItem><para>Demo List 2</para>

</ListItem>

</orderedList>

In our styles this would give you the desired results if stem is treated as a para. Obviously demo list is treated as a para also. Our markup would add Para tags around the text automatically and assum a bulled list can be contained in an ordered list.

Top Tags