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

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

Subject: Re: Scope of xml source, includes, and inline xml
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Thu, 31 Mar 2005 12:20:47 -0700
xml incl
I am discovering such... I think a better approach is to import the
xml into a variable at the parent level, so into
parent_xslt_document.xsl
Would you agree?

Also, since we are on the subject:
Is there such thing as cross-walking xml sources?  Recently I tempted
to match all (as an example) AAA elements with a value of matching all
BBB element values where BBB xml Source is not the same as AAA's xml
source.  AAA would be part of the original xml source (not sure how
you refer to that) where BBB is either an inline XML source "user data
element" or imported into the stylesheet into a variable, or passed in
as a parameter.


On Thu, 31 Mar 2005 20:09:39 +0100, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> 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@xxxxxxxxx]
> > Sent: 31 March 2005 19:53
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  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?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.