I would like to know how to create custom Markup Language?
For example:
<sn:editor>
This is text inside the editor.
<sn:editor-heading>This is the heading</sn:editor-heading>
</sn:editor>
Output:
Then convert to standard XHML and include CSS.
![]()
| SitePoint Sponsor |


I would like to know how to create custom Markup Language?
For example:
<sn:editor>
This is text inside the editor.
<sn:editor-heading>This is the heading</sn:editor-heading>
</sn:editor>
Output:
Then convert to standard XHML and include CSS.
![]()
[Home Sweet Home]


It looks like you're already on your way there. With the exception of "This is text inside the editor." which is not inside any tags. And I see you have namespaces, not exactly "beginner" level.
What you are doing is writing an XML file (eXtensible ML) which basically means that as long as you follow the rules of XML, you can do just about anything. Then use XSLT to change it to (X)HTML (or other formats).
Note* You can use CSS directly on XML without changing it to XHTML if you want to.
Last edited by Mittineague; Nov 24, 2008 at 11:28. Reason: typo




I got this <sn:editor> example tag from Bebo website, it allow user to develop own application.
On Facebook, they use FBML (Facebook Markup Language). They have written apache module in C++ for FBML instead of using XSLT.
However, I can not see anything on bebo website using XSLT. They probably did the same what Facebook did.
[Home Sweet Home]


I contacted Bebo, I asked how SNML (Social Network Markup Language) implemented.
Reply from Bebo:
A java based HTML ==> SAX parser
[Home Sweet Home]
Bookmarks