need explain on xsl:syntax for "level: of title
Posted: Tue Jun 28, 2016 7:02 am
Hi,
My question is about two xsl: syntax, I can not join it with ditamap.
if the topic with class topic/topic is the first topicref in the ditamap file. I want to know if the topic has ancestor, and who is his ancestor?
could you please explain what "parent::*/@id[.=//*/chapter/@id] doing here?
Thank you very much!
Please forgive that my question is too baisc. I am new to xsl.
Nikky
My question is about two xsl: syntax, I can not join it with ditamap.
Code: Select all
<xsl:variable name="level"
select="ancestor::*[contains(@class,'topic/topic')]"/>
Code: Select all
<xsl:when test="count($level)=1 and parent::*/@id[.=//*/chapter/@id]">
Thank you very much!
Please forgive that my question is too baisc. I am new to xsl.
Nikky