Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7C2BC200C16 for ; Thu, 26 Jan 2017 00:23:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7A8D8160B4E; Wed, 25 Jan 2017 23:23:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 37EDC160B5A for ; Thu, 26 Jan 2017 00:23:54 +0100 (CET) Received: (qmail 32319 invoked by uid 500); 25 Jan 2017 23:23:53 -0000 Mailing-List: contact notifications-help@freemarker.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@freemarker.incubator.apache.org Delivered-To: mailing list notifications@freemarker.incubator.apache.org Received: (qmail 32310 invoked by uid 99); 25 Jan 2017 23:23:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 23:23:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CC40D1A0461 for ; Wed, 25 Jan 2017 23:23:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id T35jA3yxS_j5 for ; Wed, 25 Jan 2017 23:23:34 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 18D425FDB9 for ; Wed, 25 Jan 2017 23:23:18 +0000 (UTC) Received: (qmail 30535 invoked by uid 99); 25 Jan 2017 23:23:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 23:23:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 01E67F16B7; Wed, 25 Jan 2017 23:23:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ddekany@apache.org To: notifications@freemarker.incubator.apache.org Date: Wed, 25 Jan 2017 23:23:26 -0000 Message-Id: <67e3c6b4a79b4e42b7ff10f6aca6d5f3@git.apache.org> In-Reply-To: <96380a8be6df4ca39af9b96930efd092@git.apache.org> References: <96380a8be6df4ca39af9b96930efd092@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/19] incubator-freemarker-site git commit: Updated Manual with the improvements from the 2.3.26 branch. archived-at: Wed, 25 Jan 2017 23:23:56 -0000 http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/975692b4/docs/ref_builtins_node.html ---------------------------------------------------------------------- diff --git a/docs/ref_builtins_node.html b/docs/ref_builtins_node.html index bae42b3..4e8410c 100644 --- a/docs/ref_builtins_node.html +++ b/docs/ref_builtins_node.html @@ -14,7 +14,7 @@ - + - - + +

Built-ins for nodes (for XML)

@@ -95,8 +95,8 @@ ga('send', 'pageview');

Returns the string that is used to determine what user-defined - directive to invoke to handle this node when it is ``visited''. See: - the visit and recurse directives.

+ directive to invoke to handle this node when it is + "visited". See: the visit and recurse directives.

XML: If the node is an element or attribute, then the string will be the local (prefix free) name of the element or attribute. @@ -140,10 +140,10 @@ ga('send', 'pageview'); -

A string that describes the type of node this is. FreeMarker - does not define the exact meaning of node type; it depends on what - your variables are modeling. It's possible that a node doesn't - support node type at all. In this case, the built-in evaluates to an +

A string that describes the type of the node. FreeMarker does + not define the exact meaning of node type; it depends on what your + variables are modeling. It's possible that a node doesn't support + node type at all. In this case, the built-in evaluates to an undefined value, so you can't use the returned value. (You can still check if a node supports the type property with node?node_type??.)

@@ -167,18 +167,20 @@ ga('send', 'pageview'); -

The node that is this node's immediate parent in the node - tree. The root node has no parent node, so for the root node, the - expression +

Returns the node that is this node's immediate parent in the + node tree. The root node has no parent node, so for the root node, + the expression node?parent?? evaluates to false.

XML: Note that the value returned by this built-in is also a sequence (same as the result of XPath expression .., when you write - someNode[".."]). Also note that for attribute - nodes, it returns the element the attribute belongs to, despite that - attribute nodes are not counted as children of the element.

+ someNode[".."]), however if there's no parent, + the result is a missing value (null) instead of an empty sequence. + Also note that for attribute nodes, it returns the element the + attribute belongs to, despite that attribute nodes are not counted + as children of the element.

@@ -195,17 +197,19 @@ ga('send', 'pageview');

XML: According to W3C, the root of an XML document is not the topmost element node, but the document itself, which is the parent of the topmost element. For example, if you want to get the topmost - element of the XML (the so called ``document - element''; do not mix it with the ``document''), which is called - foo, then you have to write - someNode?root.foo. If you write just - someNode?root, then you get the document itself, - and not the document element.

+ element of the XML (the so called + "document element"; do not mix it with the + "document"), which is called foo, + then you have to write someNode?root.foo. If you + write just someNode?root, then you get the + document itself, and not the document element.

-