Subject: RE: Copying ALL attributes using Xalan C++ From: zuzmi@xxxxxxxxxxx (Z. Uzmi) Date: Tue, 30 May 2000 14:26:57 -0700 |
It works, but it copies ALL the subnodes of the matched tag including attributes. This is "okay" for the img tag but for my purposes it is NOT desirable for several other tags. A way of copying only the attributes and nothing else down the tree would be very nice. Any suggestions? Thanks, Zartash > > Input XML has: <img src="someSource" alt="someAlt"/> > > Desired output should be exactly the same... > > Did you try the following? I don't have Xalan to test with but it works in > XT: > > <xsl:template match="img"> > <xsl:copy-of select="."/> > </xsl:template> > > Linda van den Brink > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Copying ALL attributes using Xa, Linda van den Brink | Thread | RE: Copying ALL attributes using Xa, Z. Uzmi |
Re: XT bug?, Eric van der Vlist | Date | Re: === Identifying a unique node i, Francis Norton |
Month |