Guess an appropriate value for `sgml-basic-offset'. Base the guessed indentation level on the first indented tag in the buffer. Add this to `sgml-mode-hook' for convenience.