xhtml-macro vs macro

Hi everybody,

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

Thank you a lot

3 answers

1 accepted

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

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 !

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

144 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you