Re: tidy tool

In <1BD922A62552D411B48A00D0B7472375040E9C18@kecmsg04>, html-tidy@w3.org writes:
> I am using your tidy tool for converting the HTML file to XHTML standard.I
> am using some custom defined sections in <TBODY > tag of <TABLE>.When i am
> running the tidy.exe it is giving some warnings like
> 
> <reportdata:section> is not allowed in <tbody> element.
> 
> and it is putting this <reportdata:section>   tag before   <tbody>   tag and
> because of that the structure of HTML file is disturbed and HTML file is not
> visible as it was visible before doing tidy.

Did you check the documentation?

You can teach Tidy about new tags by declaring them in the configuration file, the syntax is:

            new-inline-tags: tag1, tag2, tag3
            new-empty-tags: tag1, tag2, tag3
            new-blocklevel-tags: tag1, tag2, tag3
            new-pre-tags: tag1, tag2, tag3

          The same tag can be defined as empty and as inline or as empty and as block.

          These declarations can be combined to define an a new empty inline or empty block element, but you are not
          advised to declare tags as being both inline and block!

          Note that the new tags can only appear where Tidy expects inline or block-level tags respectively. This means
          you can't (yet) place new tags within the document head or other contexts with restricted content models. So
          far the most popular use of this feature is to allow Tidy to be applied to Cold Fusion files.


-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/

Received on Thursday, 16 November 2000 14:37:47 UTC