Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

add dynamic content to confluence page (from xml)

christian December 24, 2014

Hi folks,

I'd like to create some Confluence pages with dynamic content that is coming from an XML file. Can someone point me in the right direction how I can accomplish that? I've already looked into Bob Swift's HTML/XML Plugin, but attaching the XML file doesn't fit for me. The xml data is changing frequently and attaching the xml to every page (about 200 pages) seems not reasonable to me.

Is there a way to do some sort of request to an external source from within a confluence page?

Best regards

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 24, 2014

XSLT Macro allows you to reference source stored on the file system (as well as attachments), so perhaps that would suit your use case more easily.

So you have 200 separate chunks of XML to be displayed?

christian December 28, 2014

Hello Bob,

thank you for your answer. 

I am planning to document all of our IT-systems. So it will be about 200 pages, each displaying some attributes of a certain xml element. I'm not very familiar with XSLT. Is it possible to choose the element which will be displayed dependent on a specific attribute value? 

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2014

Yes, to some extent. See http://www.w3schools.com/xsl/ and related pages.

TAGS
AUG Leaders

Atlassian Community Events