Altova Mailing List Archives

RE: Copying ALL attributes using Xalan C++

From: zuzmi@----------- (-. ----)
Date: 5/30/2000 7:27:00 AM
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?


> > 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:

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.