xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] How to find parent


Subject: [xsl] How to find parent
From: Manpreet Singh <singhm@xxxxxxxxxxx>
Date: Thu, 5 Aug 2004 12:28:04 +0530

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


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor