Using sgml-insert-element

"David Chadd" <[email protected]> Wed, 13 Aug 2003 10:43:09 +0100
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
If an xml element 'foo' has a required attribute 'bar', the function
sgml-insert-element will ask for the value of this attribute at
run-time.  But I want to be able to do something like this inside a
defun:

(setq bar-value "blort")
(sgml-insert-element "foo")
(sgml-insert-attribute "bar" bar-value)

to produce <foo bar="blort">

Of course, this simply pauses with the minibuffer prompt for the
value, which rather misses the point of it!  Is there a psgml variable
I can temporarily set (perhaps inside a 'let' routine) that will stop
this happening? or some other way of achieving what I want (other than
just inserting everything as strings)?

DC
-- 
--------------------------
Professor David Chadd
University of East Anglia,
Norwich NR4 7TJ, UK
net: <[email protected]>
fax: +44 (0)1263 250454
--------------------------



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01