Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes

Subject: perfsonar development work

List archive

Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes


Chronological Thread 
  • From: Jason Zurawski <>
  • To: ulisses <>
  • Cc:
  • Subject: Re: [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes
  • Date: Thu, 27 Jul 2006 08:40:45 -0400

Ulisses;

# Question #1

The first is about adding a reference to a node in an XML document using nmwg
classes

imagine an XML document that has two completly different branches, let's say:

/--- Node class A ---- Node class C
Root --/
\
\--- Node class B ---- Node class C


imagine now that I have defined in branch that begins with Node class A, a Node class C child, lets say "a" and I want to have the same node "a" in the branch that begins with the Node class B.

The proper way to do it is:

1- new Node class C "c"
2- add attributes to node "c"
3- set the linkref attribute of "c", lets say to "cref"
4- attach "c" to class A

and then, when filling the branch that begins with the node class B...

5- new Node class C
6- just set the linkref attribute to be "cref"
7- do not set any other attribute to the newly created node class C
8- attach this new node class C to the node of class B

is this the way?


You lost me with this example, could you please explain what you are trying to do with actual XML elements and examples?

# Question #2


How can I add an L3Interface?



The inheritance for the L3 (and 2 and 1) is wrong, I will fix this.

-jason



Archive powered by MHonArc 2.6.16.

Top of Page