Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I have a situation where I need to test the preceding siblings and process the contetns accordingly. I know how I would get there with XSLT/XPath but what is the corresponding method in FOSI?
I have a list item in which a para or challenge element can be first and then there can be additional para elements. The Occur first doesn't seem to work in this case. I suppose I have to set some sort of flag when processing the content of an item to indicate the "first thing" has already occurred, is there an alternative to this?
So I have content like this:
<item><challenge>this is challenge</challenge><para>this is a para</para></item>
should format as:
1. this is challenge
this is a para
and
<item><para>this is para 1 </para><para>this is a para</para></item>
should format as:
1. this is para 1
this is a para
If I set the occur to first on <para> I get
1.
this is para 1
this is a para
First is the first occurrence of a para in item, not that it is the first child of item.
Another sort of XSLT question. In XSLT I can use one template to match multiple things, such as match="para | challenge" and then manage the formatting for these similar objects in one template, is there something similar in FOSI? It seems like you have to write and EIC for each of these and then the only way to write code once is to make a text entity out of the content. Are there any other possibilities?
thanks
..dan