Re: A question

Xoan <[email protected]>
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
Hi again,

I think I know what you mean. And, yes, I believe that is one possible
solution. Thanks!!

The only disadvantage I can see is to perform a search (i.e. : foot)
over the entire collection of xml documents (reports). I would have to
instantiate every document and then searching in each documente
individually, am i wrong?If i'm not wrong this would be highly
time-consuming ...

Thanks a lot,

Xoan

2005/4/21, Hari <[email protected]>:
> Xoan ,
> 
> u can have the  html content as xml data ...
> <html>
> <head>
> </head>
> <body>
> <content >
> <heading> Content-heading1</heading>
> <data>
>         Content-Paragraph1
> </data>
> </content>
> </body>
> </html>
> 
> This as a whole can be  xml content , this xml content has the layout
> and the content keys
> the value for the contentkey can be kept elsewhere , where ever u want
> that to be either as another xml file or  in database.
> *Example for applying formats  :
> *Content-heading1        value :  <b> Dr. Harry </b>
> Content-paragraph1   value :
> <p>ahsjkdhasjkhdjhasjdkhjskadhjksahdjkhasjkdhjaksdhjkashdjkashdjkhsajdkhsajkdhjkshjk
> hdjksh jkdhsjk hdjksah jkdh ....</p>
> The Value content can be in a xml format , u can generate a document
> instance .  Given a document instance  u can perform search
> To change Dr.Harry to italics , then  change  <b> to <i> .
> 
> u can take the contents along with the layout and display it .
> 
> Regards ,
> Harry .........
> 
> 
> Xoan wrote:
> 
> >I am not sure to understand ...
> >With your idea, which is the way to apply the original format (bold,
> >italics, hyperlinks, ...) from the html documents edited by doctors to
> >the plain text?
> >I need to perform searching in the text added by doctors, and in the
> >other hand, I have to be able to show again the the text in a web
> >interface (with the appropiate format). For these reasons I have to be
> >able to preserve the original plain text and the info about
> >design/layout/format separately.
> >
> >If I perform a full-text search over xml document with a node
> >containing a html document, and, for example, i'm looking for "head",
> >the engine would return the head html tags, not only the head as body
> >part. Am I wrong?
> >
> >Thanks,
> >
> >Xoan
> >
> >
> >
> >
> >2005/4/21, Hari <[email protected]>:
> >
> >
> >>Vacaloura  ,
> >>
> >>My thought
> >>
> >>u can  store Document object  directly in the Xml database ..
> >>
> >>if u have a html like this
> >>
> >><html>
> >><head>
> >></head>
> >><body>
> >>~~~~~~~Content ~~~~~~~~~~~~~
> >></body>
> >></html>
> >>
> >>Layout  document object should have two nodes
> >>- node1  will have first half of the html code
> >>
> >><html>
> >><head>
> >></head>
> >><body>
> >>
> >>- node2 can have the second half
> >></body>
> >></html>
> >>
> >>based on this u can get the Layout ......
> >>
> >>so the content can be appended  .....
> >>
> >>Regards ,
> >>Hari.
> >>
> >>
> >>
> >>
> >
> >
> >
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.