How URL works if ID and NAME in Libraries is optional?


#1

Hello everyone!

I’m creating a COLLADA parse and have a problem with libraries items initialisation…

in COLLADA 1.4 reference card has show, that ID and NAME attribute is optional so how URL will be looks like if ID and names will not be pasted…?

For example how will be looked URL without ID and NAMES???

<light id="Lamp-light" name="Spot">
      <technique_common>
        <point>
      ....
....
.....
 <instance_light url="#Lamp-light"/>

#2

You cannot instance an element that does not have an id attribute…

… well you could but only if you support XPointer notation, but nobody does afaik.


#3

Thank you Markus!
Now i know that nobody will use document scheme without ID and NAME, so i will not be worry about this in my COLLADA parser…