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:[email protected] |
Google+ profile:      http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |

_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to