Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

xhtml-macro vs macro

Thibaut Wavreille November 7, 2013

Hi everybody,

could you explain the difference between the tag xhtml-macro & macro ?

Thank you a lot

3 answers

1 accepted

4 votes
Answer accepted
Alexander Küken
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.
November 13, 2013

The plugin type xhtml-macro was introduced with Confluence 4 as replacement for the old macro type. I can not tell you the exact difference between them, but if I remember correctly the most important difference is the support for the new xhtml macro code instead of wiki markup and the support for confluence mobile.

If you want to develop a plugin for Confluence 4 or above i would suggest, only to use xhtml-macro. Only if you want to support older Confluence versions the old macro type would be appropiate

0 votes
Sageevan Pathmaseelan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2015

Hi,

Could anyone explain the below exception when implementing <Xhtml-macro> in confluence version 5.5.0. 

"RuntimeException occurred while performing an XHTML storage transformation (null)".

Thanks.

0 votes
Thibaut Wavreille November 13, 2013

You're right. I found also this explanation when I searched tutorials (about macro). And I found a tutorial for confluence 4 with <macro> and another with <xhtml-macro>. So I made the same observation but I was not sure. So now, you confirm my opinion, thank you so much !

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events