Lists Home |
Date Index |
- To: "Oleg A. Paraschenko" <email@example.com>
- Subject: Re: [xml-dev] joining parallel markup
- From: "Peter Hunsberger" <firstname.lastname@example.org>
- Date: Tue, 14 Mar 2006 08:49:53 -0600
- Cc: xml-dev <email@example.com>
- 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: <firstname.lastname@example.org>
- References: <email@example.com>
On 3/13/06, Oleg A. Paraschenko <firstname.lastname@example.org> wrote:
> 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...