> From: Scott Raney <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 12 Sep 2000 12:00:08 -0600 (MDT)
> To: [EMAIL PROTECTED]
> Subject: Re: htmlText - problem and feature request...
> 
> On Tue, 12 Sep 2000, David Bovill wrote:
> 
>> The following piece of HTML...
>> 
>> <HTML>
>> <HEAD>
>> <TITLE>metacard</TITLE>
>> <LINK REL="StyleSheet" HREF="../style.css">
>> </HEAD>
>> <BODY>
>> <HR>
>> <ul><A HREF="maillist.html">Date Index</A>
>> [<A HREF="thrd2.html">Earlier messages</A>]
>> &nbsp;
>> <strong>metacard</strong>
>> </BODY>
>> 
>> Is stripped to...
>> 
>> 
>> <P><GROUP>Date Index</GROUP>  [<GROUP>Earlier messages</GROUP>] &nbsp;
>> <B>metacard</B> 
>> 
>> 
>> By Metacard when you set the htmlText of a field and then try to get the
>> htmlText later.
>> 
>> Now the offending line is:
>> 
>> <LINK REL="StyleSheet" HREF="../style.css">
>> 
>> Removing it you get:
>> 
>> <P><GROUP>Date Index</GROUP>  [<GROUP>Earlier messages</GROUP>] &nbsp;
>> <B>metacard</B> 
> 
> Umm, this looks the same as without it, right?
> 

No - sorry this is a typo. You get a different result with the "<LINK..."
tag in the header. I've lost the exact result, but you get something like
the following:

<P><GROUP>Date Index  [Earlier messages</GROUP>] &nbsp; <B>metacard</B>

The basic point being that a group is "lost", which mucks up the numbering,
and hence the possibility of correlating groups with links. By the way does
anything other than an "<A href..." link the displayed text to be grouped?

>> Presumably because it is picking it up as an "<A HREF " opening tag. I need
>> to fix this as I want to be able to translate between the groups that the
>> user clicks on in a field and the "A HREF" links in the original html. To do
>> this I aim to build an array where the order of the groups in the htmltext
>> corresponds to the order of the links in the original html.
>> 
>> Are there any other problems I should anticipate? I can fix this by
>> stripping the header of "<Link ...> tag... what do you recommend?

>> An htmlClickChunk property which would return the same as the clickChunk but
>> something appropriate to the htmlText. Similar properties would eventually
>> needed for other Metacard expression (hence the idea of a single function
>> above).
> 
> It should be possible to do this with the existing HTML text features
> as soon as we get hidden tags implemented.  I'm not sure yet whether
> even totally useless stuff (like <LINK> tags) will be retained, but
> certainly stuff like HREF tags will be.

Cool, can't wait. I think it would be very useful to retain all tags. I have
found that using XML style tags as mark-up is very powerful, as you can
display the results so quickly by setting the htmlText of a field. At the
moment I have to store the full html as a custom property effectively
duplicating the data.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to