[xquery-talk] Collections - family relationships
G. Ken Holman
gkholman at CraneSoftwrights.com
Fri Jan 17 20:39:35 PST 2014
At 2014-01-17 18:14 +0000, Ihe Onwuka wrote:
>Continuing on the them of recreating the limitations of the physical world.
>
><xsl:apply-templates select="someNode"/>
>
>where someNode does not exist in the document has no effect.
>
><xsl:apply-templates select="doc('somedoc'/someNode)
That expression is addressing the node as an argument to doc(), not
as an operand of the return to doc().
>where somedoc doesn't exist .....error - failed to load document.
>
>But really it's just another non-existent node.
You are jumping to a preconceived conclusion without considering that
you probably wanted to write:
<xsl:apply-templates select="doc('somedoc')/someNode"/>
I hope this helps.
. . . . . . . Ken
--
Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ |
G. Ken Holman mailto:gkholman at CraneSoftwrights.com |
Google+ profile: http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
More information about the talk
mailing list