Jeroen Breedveld wrote:
> Ok, I agree. So the WD should specify that insert-before(-after)
> operations selecting attributes should only contain <xupdate:attributes>
> constructor elements.
Just to be clear. The following should be legal:
<xupdate:insert-before(after) ...>
<xupdate:attribute .../>
</xupdate:insert-before(after)>
That is, I should be allowed to use a pretty-printed document when
inserting an attribute. It is up to the implementation to ignore the
whitespace surrounding the xupdate:attribute element.
> Also, insert-before(-after) operations selecting elements should in my
> opinion not contain <xupdate:attributes> constructor elements because I
> see no logic in inserting attribute before (or after) elements. At the
> moment Lexus allows you to do it but it appends the attribute to the
> parent of the selected element, not very logical.
Agreed? See next comment.
I just re-read the two statements above, and it seems that, in order to
insert a new attribute, I have to use an XPath selector that selects an
existing attribute. Is this correct? If so, how do I add an attribute to
an element that doesn't have any attributes?
I would have expected that adding an attribute meant selecting the
element to which I wanted to add the attribute, then adding the
attribute. That is, something like this:
<insert-attribute [select element]>
<attribute ... />
</insert-attribute>
-- Ron
----------------------------------------------------------------------
Post a message: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]
Contact administrator: mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------