<xsl:when test="$pages[parent_id = $current_page/id]

Here should go questions about transforming XML with XSLT and FOP.
khwab
Posts: 4
Joined: Thu Jul 26, 2007 1:18 pm
Location: Pune

<xsl:when test="$pages[parent_id = $current_page/id]

Post by khwab »

Hello All,

Can anyone explain me the meaning of the following line,

<xsl:when test="$pages[parent_id = $current_page/id]">

Thank you ,

Khwab Sheth
jkmyoung
Posts: 89
Joined: Mon Mar 06, 2006 10:13 pm

Post by jkmyoung »

<xsl:when test="$pages[parent_id = $current_page/id]">

Test if the value of the parent_id node in the variable $pages is equal to the id variable in the page node.

In English, you are testing if the current page ($pages) is a child of the current page.
Post Reply