Page 1 of 1

need explain on xsl:syntax for "level: of title

Posted: Tue Jun 28, 2016 7:02 am
by Nikky_zhang

My question is about two xsl: syntax, I can not join it with ditamap.

Code: Select all

<xsl:variable name="level"

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?

Code: Select all

<xsl:when test="count($level)=1 and parent::*/@id[.=//*/chapter/@id]">

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.