5E Product Walkthrough Playlist
  1. #1

    anchored attributes behave different than elements?

    Hello,

    I am working on the DSA ruleset ( The Dark Eye ) at the moment. While trying to shorten some of the code by using XML attributes rather than elements I found that this code:
    Code:
    <anchored>
    
    <to>werte_uebersicht</to> <position>insidetopleft</position> <offset>40,30</offset>
    </anchored>
    behaves different to this one:
    Code:
    <anchored to="werte_uebersicht" position="insidetopleft" offset="40,30" />
    Can anybody tell me why?
    I was expecting it to work exactly the same way.

  2. #2
    It should work the same as long as that is the final output. If the tags and attributes are used in templates or attempting to override templates, then they both must use the same mechanism (tags or attributes).

    Regards,
    JPG

  3. #3
    Quote Originally Posted by Moon Wizard View Post
    It should work the same as long as that is the final output. If the tags and attributes are used in templates or attempting to override templates, then they both must use the same mechanism (tags or attributes).

    Regards,
    JPG
    Thanks Jpg, the tags and attributes were overriding other tags in elements that were defined in templates.
    Last edited by JMessmer; October 31st, 2017 at 20:09.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Log in

Log in