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

Re: One or more documents and reference

Subject: Re: One or more documents and reference
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 Jan 2001 12:08:41 GMT
Re:  One or more documents and reference
> 1- In several articles about XSL, writs that XSL is designed to query one
> document at time. What about the following function:
> doc(String URI)?

You must be reading some strange articles.
See the document() function.


> Is it possible to refer to manager Smith1 from biologist element?
<xsl:apply-templates select="//lab[@manager=current()/@ID]"/>

will select all elements who's manager attribute is the same as
the id of the current node. (If you are doing this a lot it may be worth
using the key() function to avoid repeatedly searching the document.

> 3- Dose every node in XSL data model has a unique identifier?. Are they
> generated by XSL processor for each node in case the nodes from the source
> document don't have the ID attribute vale?
You can generate unique identifiers with generate-id() (but they don't
count as ids to th eid() function)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 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.