Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Forms wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...
 Forms Experience Builder 8 documentation

 Webform Server 8 documentation

 Forms Designer 8 documentation
 Extensible Forms Description Language XFDL 8.0

 Forms API 8 - Dev Guide

 Form Services Platform 8 documentation

 Forms Viewer 8 documentation

 Forms 8 and FileNet integration documentation

 Forms API 4 - Dev Guide
 Forms with Workflow 4
 Forms 4 and Mashup Center integration documentation

Tag Cloud

  • 3.0
  • 3.5
  • 3.5.1
  • 4.0
  • 4.0.0.1
  • 4.0.0.2
  • 8.0
  • accessibility
  • actions
  • API
  • app dev
  • button item
  • buttons
  • C
  • certificates
  • COM
  • compute
  • computes
  • configuring
  • creating
  • defining
  • demonstration
  • demos
  • deployment
  • deployment scenario
  • design
  • design tips
  • Designer
  • designing
  • dev guide
  • develop
  • developing
  • differences between Webform Server and Viewer
  • education
  • Enablement
  • enterprise
  • error messages
  • events
  • field
  • field item
  • FileNet
  • filtering
  • form
  • formatting
  • forms
  • forms experience builder
  • Forms Services Platform
  • FSP
  • functions
  • getting_started
  • Help
  • IBM Forms
  • images
  • installing
  • integrating
  • integrating, 4.0.0.1
  • items
  • JAVA
  • JavaScript API
  • language
  • languages
  • layout
  • lf_intro
  • math functions
  • methods
  • new_user
  • options
  • P8
  • performance
  • pipelines
  • pipes
  • printing
  • programming
  • Properties
  • samples
  • services
  • signature item
  • signatures
  • spec
  • string functions
  • strings
  • StrJava
  • submissions
  • table
  • tables
  • text
  • training
  • translation
  • Turbo
  • turbo_media
  • tutorials
  • utility functions
  • video
  • Viewer
  • viewer package
  • Webform Server
  • WebformServer
  • XFDL
  • XForms
  • XPath
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Extensible Forms Description Language XFDL 8.0 > parent-node
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

parent-node 

expanded Abstract
collapsed Abstract
An extension to XForms 1.1, this function returns the parent node of a given node.



An extension to XForms 1.1, this function returns the parent node of a given node.

Syntax

   parent-node(node)


Table 1. parent-node parameters
ParameterType Description
nodeXPathThe element whose parent node is obtained.


Returns

The parent node, or empty nodeset if the given node has no parent.

Example

<xforms:setvalue ref="table/container/element/name"
							 value="local-name(parent-node(context()))"/>


Usage details

  1. To use this function, you should include it in the functions attribute of the <xforms:model> tag.
  2. This function provides the same behavior as the expression "ancestor::*[1]", except that the function operates in constant time regardless of the number of ancestors. Use this function with care; unless the axis is large, an XPath axis navigation is more efficient than a function call.
Parent topic: XForms utility functions

expanded Article information
collapsed Article information
Category:
Extensible Forms Description Language XFDL 8.0, Product Documentation,
Tags:
next-sibling function, utility functions, XFDL, 8.0, spec

This Version: Version 1 May 2, 2012 2:28:17 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) May 2, 2012 2:28:17 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use