See http://www.w3.org/TR/xslt#function-document down to: "If the second argument is omitted, then it defaults to the node in the stylesheet that contains the expression that includes the call to the document function"
Although it's too early in the morning for me to provide a definitive answer, I'm pretty sure this is correct... hmmm, actually, I want to ask one of the true experts now. Only since the xsl:include statement is somewhat specific about saying that the included stuff is directly stuck into the stylesheet as if it were 'supposed' to be there. ERROR - NEED MORE COFFEE! About #include: don't count on it. xsl:include/import or custom DOM programming are the ways that you can do it now - the XML world is definitely not like the C world in that respect. DOM Level 3 (still in progress and not widely supported yet) has some features more like that, but it's a while off. - Shane ===== <eof aka="mailto:[EMAIL PROTECTED]" quote="A mirror is like a window on the other side of behind you."/> ===== <eof aka="mailto:[EMAIL PROTECTED]" BartSays="Nobody reads these anymore."/> __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com
