Skip to content
Snippets Groups Projects
Commit d6cd50bf authored by ruffsl's avatar ruffsl
Browse files

Simplify xpointer useage in example

parent 6442d8ab
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<profile xml:id="node">
<xi:include
xmlns:xi="http://www.w3.org/2003/XInclude"
href="node/time.xml"
xpointer="xpointer(id('time')/*)"/>
<xi:include
xmlns:xi="http://www.w3.org/2003/XInclude"
href="node/parameters.xml"
xpointer="xpointer(id('parameters')/*)"/>
<profile xmlns:xi="http://www.w3.org/2003/XInclude">
<xi:include href="node/time.xml"
xpointer="xpointer(/profile/*)"/>
<xi:include href="node/parameters.xml"
xpointer="xpointer(/profile/*)"/>
</profile>
<?xml version="1.0" encoding="UTF-8"?>
<profile xml:id="parameters">
<profile>
<topics publish="ALLOW" subscribe="ALLOW" >
<topic>parameter_events</topic>
</topics>
......
<?xml version="1.0" encoding="UTF-8"?>
<profile xml:id="time">
<profile>
<topics subscribe="ALLOW" >
<topic>/clock</topic>
</topics>
......
......@@ -4,49 +4,49 @@
<profiles>
<profile ns="/" node="talker">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<topics publish="ALLOW" >
<topic>chatter</topic>
</topics>
</profile>
<profile ns="/" node="listener">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<topics subscribe="ALLOW" >
<topic>chatter</topic>
</topics>
</profile>
<profile ns="/" node="add_two_ints_server">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<services reply="ALLOW">
<service>add_two_ints</service>
</services>
</profile>
<profile ns="/" node="add_two_ints_client">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<services request="ALLOW">
<service>add_two_ints</service>
</services>
</profile>
<profile ns="/" node="minimal_action_server">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<actions execute="ALLOW">
<action>fibonacci</action>
</actions>
</profile>
<profile ns="/" node="minimal_action_client">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<actions call="ALLOW">
<action>fibonacci</action>
</actions>
</profile>
<profile ns="/" node="admin">
<xi:include href="common/node.xml"
xpointer="xpointer(id('node')/*)"/>
xpointer="xpointer(/profile/*)"/>
<actions call="ALLOW" execute="ALLOW">
<action>fibonacci</action>
</actions>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment