Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Enchanted Trinkets Complete--a hardcover book containing over 500 magic items for your D&D games!
Community
General Tabletop Discussion
*TTRPGs General
How to use InDesign and XML?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Cergorach" data-source="post: 1236308" data-attributes="member: 725"><p>Has anyone any experience with XML in InDesign?</p><p></p><p>I understand the XML basics, i know InDesign pretty well, but have never used the two together, i would like to.</p><p></p><p>What i want to accomplish for example is to use the SRD spell lists in XML (i got an example made by someone else) to generate pages and pages of spells, already laid out.</p><p></p><p>Example spell in XML:</p><p>[php]</p><p><spell name="Acid Arrow"></p><p><school>Conjuration</school></p><p><sub-school>Creation</sub-school></p><p><descriptor>Acid</descriptor></p><p><level class="Sor" class_lvl="2"/></p><p><level class="Wiz" class_lvl="2"/></p><p><component value="V"/></p><p><component value="S"/></p><p><component value="M"/></p><p><component value="F"/></p><p><casting-time>1 standard action</casting-time></p><p><range>Long (400 ft. + 40 ft./level)</range></p><p><target-area-effect>One arrow of acid</target-area-effect></p><p><duration>1 round + 1 round per three levels</duration></p><p><saving-throw>None</saving-throw></p><p><spell-resistance>No</spell-resistance></p><p><long-description><p>A magical arrow of acid springs from your hand and speeds to its target. You must succeed on a ranged touch attack to hit your target. The arrow deals 2d4 points of acid damage with no splash damage. For every three caster levels (to a maximum of 18th), the acid, unless somehow neutralized, lasts for another round, dealing another 2d4 points of damage in that round.</p></p><p><p>Material Component: Powdered rhubarb leaf and an adder's stomach.</p></p><p><p>Focus: A dart.</p></p><p></long-description></p><p></spell></p><p>[/php]</p><p>note: the code tag doesn't display the XML tags, strangely the PHP tag does, sorry for the nasty colors...</p><p></p><p>I can neatly import the XML and i get a neat structure overview, when i drag an XML spell to the document it looks like this:</p><p></p><p></p><p></p><p>How do i display the attributes like the spell name and spell level? I would like to add Range: before the range component. I would like to automatically generate pages and pages of spell lists by dragging them to the document with the attributes and text that describes the components (such as range).</p><p></p><p>I don't know if i can do this with standard InDesign functionality or that i need to write a script for it. I'll be messing around with this little 'problem', but it would be really helpful if someone who has any experience with this to give some pointers...</p></blockquote><p></p>
[QUOTE="Cergorach, post: 1236308, member: 725"] Has anyone any experience with XML in InDesign? I understand the XML basics, i know InDesign pretty well, but have never used the two together, i would like to. What i want to accomplish for example is to use the SRD spell lists in XML (i got an example made by someone else) to generate pages and pages of spells, already laid out. Example spell in XML: [php] <spell name="Acid Arrow"> <school>Conjuration</school> <sub-school>Creation</sub-school> <descriptor>Acid</descriptor> <level class="Sor" class_lvl="2"/> <level class="Wiz" class_lvl="2"/> <component value="V"/> <component value="S"/> <component value="M"/> <component value="F"/> <casting-time>1 standard action</casting-time> <range>Long (400 ft. + 40 ft./level)</range> <target-area-effect>One arrow of acid</target-area-effect> <duration>1 round + 1 round per three levels</duration> <saving-throw>None</saving-throw> <spell-resistance>No</spell-resistance> <long-description><p>A magical arrow of acid springs from your hand and speeds to its target. You must succeed on a ranged touch attack to hit your target. The arrow deals 2d4 points of acid damage with no splash damage. For every three caster levels (to a maximum of 18th), the acid, unless somehow neutralized, lasts for another round, dealing another 2d4 points of damage in that round.</p> <p>Material Component: Powdered rhubarb leaf and an adder's stomach.</p> <p>Focus: A dart.</p> </long-description> </spell> [/php] note: the code tag doesn't display the XML tags, strangely the PHP tag does, sorry for the nasty colors... I can neatly import the XML and i get a neat structure overview, when i drag an XML spell to the document it looks like this: How do i display the attributes like the spell name and spell level? I would like to add Range: before the range component. I would like to automatically generate pages and pages of spell lists by dragging them to the document with the attributes and text that describes the components (such as range). I don't know if i can do this with standard InDesign functionality or that i need to write a script for it. I'll be messing around with this little 'problem', but it would be really helpful if someone who has any experience with this to give some pointers... [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
How to use InDesign and XML?
Top