[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: doc() and document()

Subject: RE: doc() and document()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 27 Apr 2007 15:55:29 +0100
RE:  doc() and document()
Use doc-available() to test whether a document exists.

Michael Kay

> -----Original Message-----
> From: tom tom [mailto:tomxsllist@xxxxxxxxxxx] 
> Sent: 27 April 2007 15:51
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  doc() and document()
> I wish to reference an external XML document that may or may 
> not actually exist using XSLT 2. When it doesn't exist a 
> command such as
>   <xsl:value-of select="document('ttt.xml')/one"/>
> doesn't cause the transformation to fail whereas a command such as
>   <xsl:value-of select="doc('ttt.xml')/one"/>
> does. I am using Saxon 8.
> My understanding is that, since I am using XSLT 2, the doc() 
> function provides a more simple solution. Can someone advise 
> the correct way implement this?
> Thanks
> _________________________________________________________________
> Get Hotmail, News, Sport and Entertainment from MSN on your mobile.  
> http://www.msn.txt4content.com/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.