xsl-list
[Top] [All Lists]

RE: Scope of xml source, includes, and inline xml

2005-03-31 12:09:39
A user data element (a child of xsl:stylesheet in its own namespace) doesn't
actually have any scope at all. The only way of accessing it in any kind of
standard way is using document('')/*/sd:data, in which case it might as well
not be in the stylesheet at all.

I think the purpose of allowing these elements was originally to enable
vendor extensions like msxsl:script, they really aren't that useful for user
stuff.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Karl Stubsjoen [mailto:kstubs(_at_)gmail(_dot_)com] 
Sent: 31 March 2005 19:53
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Scope of xml source, includes, and inline xml

All right,

Lets say in my xslt sheet include_file_A I create the 
following inline XML:

<sd:data>
  <AAA/>
  <BBB/>
  <CCC/>
</sd:data>

Let say the parent xslt document is:
parent_xslt_document.xsl

Which include the following xslt documents:
include_file_A.xsl
include_file_B.xsl

Is the scope of <sd:data /> limited to include_file_A?

--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--