-
October 30th, 2017, 21:37 #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>
Code:<anchored to="werte_uebersicht" position="insidetopleft" offset="40,30" />
I was expecting it to work exactly the same way.
-
October 30th, 2017, 23:28 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,665
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
-
October 31st, 2017, 20:04 #3
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks