WordPress.org

Ready to get started?Download WordPress

Forums

XML and XSL before posting (5 posts)

  1. ZBRob
    Member
    Posted 9 years ago #

    After rereading Dunstan's tag transformations, I'm very curious. Is it easy to do this in WordPress, and if yes, how? I'm just getting into XML and XSL, but it would make WP more future-proof.

  2. chuyskywalker
    Member
    Posted 9 years ago #

    I believe what he is actually doing is kinda hacky, in it's own cool way.
    Basically, instead of trusting himself to leave a bunch of DIV's and other nonsense in his posts he uses a custom language. This language is XML compliant (which is not hard to do), and then before the post content is spit out, it is "transformed" via a PHP script to a preset format with all the extra DIV's that it might need. In this manner, if a better way comes about that doesn't require DIV's, he can simple change the routine for "transforming" instead of updating 200+ posts.
    I believe there have been a few plugins that do this sort of thing at a very basic level. Think about the smilie replacement technique - those were text, but get inserted as graphics. This is the same concept.
    So, yes, it is possible, but I do not think some as advanced as Dunstan's example has been created. (Someone please place my foot in mouth if untrue.)

  3. ZBRob
    Member
    Posted 9 years ago #

    The forward-compatibility is attractive, and since I'm beginning to grow fond of XML, I think I'm going to implement his structure, and see what happens :P
    If it's possible to turn it into a plugin, it would be so damn neat...
    But that would mean that it had to check the whole post, transform everything, and output XHTML. My skillz aren't the best, but I like the look of this, I never knew it was that easy ('smilie replacement').

  4. chuyskywalker
    Member
    Posted 9 years ago #

    Yeah, it would be a good plugin. Start working on it ;-)
    Hooking into wordpress via plugins is actually pretty easy, and fairly well documented. If you do make it though, everyone will love you :D

  5. Anonymous
    Unregistered
    Posted 9 years ago #

    ddvcfv34

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.