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

Re:  re: IDs and databases (Was: determining ID-ness in XML)


ino id
Is it required that XSLT or DOM implement getElementById() in such a way
that a brute force search for elements with attribute ino:id=xxx is
inferior, other than the constraint that the first match is all that's
needed?

Why couldn't the DB return the retrieved subtree with ino:id defined as an
ID attribute in an internal subset part of the returned document, or in the
infoset or whatever the corresponding location is if the result is returned
as a DOM?  Why would we need a new mechanism where the DB would stick in a
PI that the app would have to know about?

Jeff

----- Original Message -----
From: "Champion, Mike" <Mike.Champion@S...>
To: <xml-dev@l...>
Sent: Wednesday, November 07, 2001 6:10 AM
Subject:   re: IDs and databases (Was: determining ID-ness in XML)


> Ron Bourret asks:
>
> Here's a concrete use case: I query the DB, get back a substantial list of
> matching elements that the user must choose from. I use one or two values
in
> each element to populate a list box, with the value returned with the user
> selects a specific value being the ino:id.  The user selects one, now I
have
> to get the entire content of the selected element.  I have the ino:id, so
I
> can easily get it from the DB, but I have to either do a brute-force
search
> or have built some data structure of my own to match that id up with a
> specific element in the subtree I already retrieved.  It would be
convenient
> -- not a big deal, just one less hassle -- if there was a way to tell DOM
> (or XSLT, or whatever) that the ino:id attribute is an "ID" so that I can
> just use getElementById() to find it.
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
>


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.