xsl-list
[Top] [All Lists]

[xsl] doc() and document()

2007-04-27 07:51:01
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--