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]

RE: [xsl] Parent


Subject: RE: [xsl] Parent
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Wed, 8 Sep 2004 14:03:52 +0100

Hi,

You need to google for 'xpath axis' - a tutorial is here:
http://www.topxml.com/xsl/tutorials/intro/xsl4.asp.

To test for a parent, you use the parent axis:

<xsl:if test="parent::Test">
  ...
</xsl:if>

cheers
andrew


> Hi,
>
> ich have a xml file:
>
> <Test>
>   <Fall>
>   . ..
> and now i'm at node Fall and i wanna test if Fall is the
> child of Test. I tried <xsl:if test=".. = Test">, but i doesn't work.
>
> How can i achieve it?
>
> Thanks in advance
> Sven


Current Thread
Keywords
xml
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