[Home] [By Thread] [By Date] [Recent Entries]
McDonald, Shaun wrote:
You are using <xsl:value-of> here. Surely that's not what you want. You don't want the *value* (which returns a string representation of the nodes in the select expression) but a *copy* of all the nodes. Change "value-of" to "copy-of" and you are done (it will copy comment nodes and processing instructions as well but not the opening xml declaration). Another little thing, why the for-each? You can remove it and just use: <xsl:copy-of select="document(@loc)" /> (it is only from xslt 2.0 that document(xx) function can be used on a sequence and will return multiple documents, in which case the for-each could make sense) Cheers, -- Abel Braaksma http://www.nuntia.com
|

Cart



