General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Editing XHTML in Xmetal

  • gcrews

    Editing XHTML in Xmetal

    Participants 1
    Replies 2
    Last Activity 10 years, 9 months ago

    Can Xmetal be effectively used to edit XHTML files?

    Does anyone use Xmetal to edit XHTML files?


    Derek Read

    Reply to: Editing XHTML in Xmetal

    Yes, you can do this. Whether it effective is obviously subjective (so you'll want an answer from someone that actually does this daily and not me). You will obviously not get any wiz-bang features a dedicate HTML editing tool will give you (unless you code them yourself as part of a customization), but you will get perfectly valid XHTML.

    You do need to provide the right flavour of DTD or XSD for the type of XHTML you want to edit (strict, transitional, etc).

    Not many clients do this that I know of, but there are quite a few that have created their own customizations (if you don't create a CSS and CTM then you will be using auto-generated versions of those files which may not give you styling you might expect). Rather than try to build a CSS from scratch (or from the auto-gen one) for use with the XHTML DTD you end up choosing you might begin with something like this:

    Here's an example (written years ago by Richard Ishida when he was still using XMetaL version 2 or 3 I think):

    In some cases XHTML is also incorporated into a larger document type (often using XSD namespaces) and not worked on as pure XHTML.

    In many cases XHTML is produced as an output (as with the large percentage of our clients are now authoring in DITA).


    Derek Read

    Reply to: Editing XHTML in Xmetal

    Since that CSS I linked to contains a bunch of Mozilla junk (it would just be ignored, but makes the CSS itself unclear for further modification) one might prefer to start with this instead:

    And the DTDs are here:


  • You must be logged in to reply to this topic.

Lost Your Password?