M
Malcolm Dew-Jones
Hello
What is the correct way to associate the attributes with the tag if the
tag has a name space associated with it and the attribute doesn't have a
name space?
i.e.
<mytag
xmlns:mine="my/default/name/space"
xmlns:theirs="Some/one/elses/name/space" >
<mine:atag mine:attr1="my value" attr1="whatever" theirs:attr1="another">
</mine:atag>
</mytag>
The parser shows that mytag is in "my/default/name/space", and
`mine:attr1' is in "my/default/name/space"
`theirs:attr1' is in "Some/one/elses/name/space".
`attr1' is not in a name space
Is there a "correct" way to interpret this? Which attribute should be
associated with the tag? Obviously (?) not `theirs', but I would think
that most commonly an attribute won't have a name space, whereas a tag
commonly would, so the unspaced attribute would normally "go with" a tag
even though the name space is wrong, but the above appears valid, so how
is this interpreted?
malcolm
What is the correct way to associate the attributes with the tag if the
tag has a name space associated with it and the attribute doesn't have a
name space?
i.e.
<mytag
xmlns:mine="my/default/name/space"
xmlns:theirs="Some/one/elses/name/space" >
<mine:atag mine:attr1="my value" attr1="whatever" theirs:attr1="another">
</mine:atag>
</mytag>
The parser shows that mytag is in "my/default/name/space", and
`mine:attr1' is in "my/default/name/space"
`theirs:attr1' is in "Some/one/elses/name/space".
`attr1' is not in a name space
Is there a "correct" way to interpret this? Which attribute should be
associated with the tag? Obviously (?) not `theirs', but I would think
that most commonly an attribute won't have a name space, whereas a tag
commonly would, so the unspaced attribute would normally "go with" a tag
even though the name space is wrong, but the above appears valid, so how
is this interpreted?
malcolm