Search the web
Sign In
New User? Sign Up
tagsoup-friends · Friends of TagSoup
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problems with nested tags   Message List  
Reply | Forward Message #1364 of 1386 |
Re: [tagsoup-friends] Problems with nested tags

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



Fri Sep 18, 2009 10:57 pm

johnwcowan
Offline Offline
Send Email Send Email

Forward
Message #1364 of 1386 |
Expand Messages Author Sort by Date

Hi, this might have been asked a couple of times already, but searching the forum did not really help. I have marked-up text, mixing HTML tags with a custom...
knobs1723
Offline Send Email
Sep 11, 2009
10:49 am

... Sorry for the delayed response. It is because TagSoup does not know that placename is a tag that can go inside p elements. ... Changing the schema may be...
John Cowan
johnwcowan
Offline Send Email
Sep 18, 2009
10:58 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help