Results 1 to 3 of 3

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

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    2

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

    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???

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

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

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

    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. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    2

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

    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....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •