Re: Another hopefully simple question: root attributes

Subject: Re: Another hopefully simple question: root attributes
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Wed, 27 Oct 1999 10:30:45 -0500
Quoting Wroth, Mark <MARK.WROTH@xxxxxxxxxxx>:
> I need a construct which returns as a string the value of a known attribute
> of the root element of a document (regardless of the GI of the document
> element). I think my problem is in identifying the root element, but ... 
> 
> Say the attribute I need is "id" (which it is :-). As I read the spec, 
> 	
> 	(attribute-string "id" root)
> 
> would do what I want if "root" was an osnl returning the root element of the
> current document.
> 
   (attribute-string "id" (node-property 'document-element
                            (node-property 'grove-root (current-node))))

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread