For step 1 I think you should have a tilde "~" instead of a comma "," between "publishFlag" and "parentContainerPath". Like this
EndWTPart~create~wt.part.LoadPart.endCreateWTPart~publishFlag~parentContainerPath
Then, the error 'Element type "csvpublishFlag" must be declared.', means you need a line like this in the DTD
<!ELEMENT csvpublishFlag (#PCDATA) >