Hi, I am storing a RFT in a variable say as in below style sheet:
<xsl:stylesheet version="1.0" xalan:ignore="ignore" NS:ignore="ignore" exclude-result-prefixes="xalan" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" xmlns:NS="NS" > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:variable name="temp"> <NS:Entry Id1="1" Id2="2" Id3="3"> <NS:Atr>10</NS:Atr> </NS:Entry> </xsl:variable> . . . <xsl:template match="/"> <xsl:copy-of select="xalan:nodeset($temp)"/> </xsl:template> </xsl:stylesheet> When I am trying to copy the above RTF into the output file, I see it this way <O/P XML File> <NS:Entry xmlns:NS="NS" Id3="3" Id2="2" Id1="1"> < NS:Atr>10</NS:Atr> </NS:Entry> I want to know why the order of the attributes is getting reversed. Precisely I would like to know if I can retrieve the attributes order as it. Also, I want to avoid the prefixing of xmlns:NS="NS". Thanks & Regards, Pnvd Sudhir The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com