[Namespace] Could I enclose different namespaces ?

[Namespace] Could I enclose different namespaces ?

Post by Cram TeXe » Wed, 07 Apr 2004 15:41:21


Hello everybody

Could I enclose different namespace.
My concern is :
On one hand, I have this stuff
<tr:transaction xmlns:tr=" http://www.yqcomputer.com/ "
attr1="blabla" attr2 ="blabla">
<tr:item num="1">
<tr:identification>
<blabla/>
</tr:identification>
<tr:content>
<blablablabla/>
</tr:content>
</tr:item>
<tr:item num="2">
....
</tr:transaction>

On other hand I have
<b:batchRequest xmlns:b=" http://www.yqcomputer.com/ "
attrBatch1="blabla" attrBtch2="blabla">

<b:addRequest dn="uid=john.doo,dc=home,dc=sweethome,dc=org">
<b:attr name="objectclass">
<b:value>top</b:value>
<b:value>person</b:value>
</b:attr>
<b:attr name="cn">
<b:value>john</b:value>
</b:attr>
<b:attr name="sn">
<b:value>doo</b:value>
</b:attr>
<b:attr name="uid">
<b:value>john.doo</b:value>
</b:attr>
</b:addRequest>
<b:addRequest dn="uid=john.doo2,dc=home,dc=sweethome,dc=org">
<...>
</b:addRequest>
</b:batchRequest>


I want to put my batchRequest document into the transaction document,
so I can extract one aspect or other from one document.

It's authorized to do this :

<tr:transaction xmlns:tr=" http://www.yqcomputer.com/ "
xmlns:b=" http://www.yqcomputer.com/ "
attr1="blabla" attr2 ="blabla">
<b:batchRequest attrBatch1="blabla" attrBtch2="blabla">
<tr:item num="1">
<tr:identification>
<blabla/>
</tr:identification>
<tr:content>
<b:addRequest dn="uid=john.doo,dc=home,dc=sweethome,dc=org">
<b:attr name="objectclass">
<b:value>top</b:value>
<b:value>person</b:value>
</b:attr>
<b:attr name="cn">
<b:value>john</b:value>
</b:attr>
<b:attr name="sn">
<b:value>doo</b:value>
</b:attr>
<b:attr name="uid">
<b:value>john.doo</b:value>
</b:attr>
</b:addRequest>
</tr:content>
</tr:item>
<tr:item num="2">
<b:addRequest dn="uid=john.doo2,dc=home,dc=sweethome,dc=org">
<...>
</b:addRequest>
</tr:item>
</b:batchRequest>
</tr:transaction>

Sum up :

<NS_1:a>
<NS_2:aa>
<NS_1:b>
<NS_1:c>
<NS_2:bb/>
</NS_1:c>
</NS_1:b>
</NS_2:aa>
</NS_1:a>

Thank !

8:0) Cram TeXeD
--
"On ne peut pas ne pas communiquer"
axiome n de Paul Watzlawick
<< http://www.yqcomputer.com/ >>