xsl-list
[Top] [All Lists]

How to find parent

2004-08-04 23:58:04
hi,
 
                        <xsl:for-each select=".//fo:block">
                                <ABC>
                                        <xsl:choose>
                                                <xsl:when
test="..=fo:block-container">     ------Something wrong here. I am looking
for the parent of fo:block. If it is fo:block-container then do something,
else do something else
                                                        <!--DO SOMETHING-->
                                                </xsl:when>
                                                <xsl:otherwise>
                                                        <!--DO SOMETHING
ELSE-->                                                 
                                                </xsl:otherwise>
                                        </xsl:choose>
                                </ABC>
                        </xsl:for-each>

Regards 
Manpreet


<Prev in Thread] Current Thread [Next in Thread>