knobs1723 scripsit:
> I have marked-up text, mixing HTML tags with a custom tag <placeName>. The
latter is usually embedded in a <p>...</p> pair, i.e:
<p>...<placeName>...</placeName>...</p>. When I parse the text with TagSoup, the
output is made into:
> <p>...</p><placeName>...</placeName>
Sorry for the delayed response. It is because TagSoup does not know that
placename is a tag that can go inside p elements.
> Any ideas, suggestions what I am doing wrong? I'm using TagSoup 1.2.
Changing the schema may be too difficult, but if you have *lots* of text, do
that.
Otherwise, look for <placeName> and change it to <span class="placeName"> or
something of the sort, and change </placeName> to </span>, both before parsing.
--
You escaped them by the will-death John Cowan
and the Way of the Black Wheel. cowan@...
I could not. --Great-Souled Sam http://www.ccil.org/~cowan