Currently a named anchor, named after the current paragraph ID, is printed inside the tag - this is not valid xhtml.
To be a valid name tag, the tag needs an ID too - but this will need to be prefixed or something, since an ID cannot be a number in xhtml (or html for that matter)