xsl-list
[Top] [All Lists]

Re: How to find parent

2004-08-05 00:45:08
Hi Manpreet,

Try these -

<xsl:if test="parent::fo:block-container">

</xsl:if>

or

<xsl:if test="name(..) = 'fo:block-container'">

</xsl:if>

Regards,
Mukul

--- Manpreet Singh <singhm(_at_)quark(_dot_)co(_dot_)in> wrote:

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



        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


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