Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Identity transform on node-set loaded with document()


Subject: [xsl] Identity transform on node-set loaded with document()
From: Matt Poff <matt.poff@xxxxxxxxxxxxxxx>
Date: Thu, 02 Aug 2007 12:26:46 +1200

Hi,

I've been away from XSLT a while and am stumbling on how to implement the following:

My transform imports, using document(), an HTML snippet contain a populated <head></head> tag. I want to copy this into one of several result trees I am outputting as is *except* the <title/> tag needs to be populated with a value.

Initially I created a named template and sent the loaded node-set to it, then realised I probably needed an identity transform but all of the identity transform examples I've found seem to be set-up to operate on the master document only. What's the best way to carry out this task? Can I do an identity transform with a named template?

I'm sure there's a fairly simple solution but it's passing me by.

Thanks,
Matt


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords