Re: [xml] Replacing parts of xml with xsl
- From: Daniel Veillard <veillard redhat com>
- To: Eric Haszlakiewicz <erh nimenees com>
- Cc: Colin Gillespie <C Gillespie newcastle ac uk>, xml gnome org
- Subject: Re: [xml] Replacing parts of xml with xsl
- Date: Sun, 18 Jul 2004 08:40:03 -0400
On Fri, Jul 16, 2004 at 11:39:22AM -0500, Eric Haszlakiewicz wrote:
On Fri, Jul 16, 2004 at 08:17:51AM -0400, Daniel Veillard wrote:
On Fri, Jul 16, 2004 at 12:06:16PM +0100, Colin Gillespie wrote:
I hopefully have a simple problem.
Hopefully you have checked the existing examples.
I want to use a xsl style sheet to change a part of the xml that is
specified with an xpath expression.
XSLT is not defined to work on a subtree.
well ok. but how about if you just grab the subtree, set it as the root
element in a new document, and then xslt that? Then take the result and
toss is back into the original document. voila! xslt on a subtree!
Well, what about the id() lookup, does it work ? If yes how is it defined ?
It's just one example of many little things which can go wrong with an
half baked approach like that.
I think not changing the document but applying the stylesheet templates
for that given element and cocllecting the resulting nodeset would be
a more well defined approach.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]