OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] joining parallel markup

[ Lists Home | Date Index | Thread Index ]
  • To: "Oleg A. Paraschenko" <olpa@xmlhack.ru>
  • Subject: Re: [xml-dev] joining parallel markup
  • From: "Peter Hunsberger" <peter.hunsberger@gmail.com>
  • Date: Tue, 14 Mar 2006 08:49:53 -0600
  • Cc: xml-dev <xml-dev@lists.xml.org>
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k70DJMtwHOQQ9YJD5MRVWiu2b/dG/ZKMKZYY7NoOxwXGgP9dNSFILVsGfvvgJAVgjx25zJ0SehWagi01ZDjHr093tEcyl4gsj3CjqfRORv6alWP2ykMUplpBSZwo0YLPscJgHoOHAEpHneSc3vjp2gigpRlbmFROdgOsEshqFMg=
  • In-reply-to: <20060314065722.1e9e795b.olpa@xmlhack.ru>
  • References: <20060314065722.1e9e795b.olpa@xmlhack.ru>

On 3/13/06, Oleg A. Paraschenko <olpa@xmlhack.ru> wrote:
>  Hello,
>  would you please suggest if there are libraries to join markup? For
> example, having two fragments
> <x><b>some dummy</b> text</x> and
> <x>some <i>dummy text</i></x>,
>  I'd like to get
> <x><b>some <i>dummy</i></b><i> text</i></x>,
>  or something like it.

If you look at what you are asking for in the most general case, I
believe the answer is not really: you want to to do generalized
merging of graphs (which is believed to be a  NP complete problem). 
If your domain is limited and common (eg. XHTML ) then you might get
lucky and find some existing tools.  Otherwise, I think you've got a
good use case for rolling your own with XSLT...

Peter Hunsberger


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS