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

Re: Generate key with further restriction

Subject: Re: Generate key with further restriction
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 9 Sep 2003 17:23:09 +0100
generate key

> Do namespaces extend to the content of the attribute?
a highly political and contentious question that:-)
If you mean what I suspect you mean the answer is no.


> match="@*[name() = 'type' and ... ]

why match them all and filter out everything except name, that
is the same as

match="@type[... ]


> For example from an xsd file that contains the following specs, I would 
> only like to select Account.
Well the attribute node type="Account" will be in the key.

It's not clear what filtering out the xs: values from your key
really achieves (except saving a bit of internal memory for the
processor) 

with your key definition as it is
key('usedTypes','Account') will return all the type="Account"
nodes, but if you used the simpler definition of

<xsl:key name="usedTypes" match="@type" use="." />
then
key('usedTypes','Account') would return exactly the same nodes.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.