Order of attributes is not part of the XML specification -
do a quick search on Google for
xml "order of attributes"
and you see will many discussions on this topic.
Also look a the XSLT spec:
which basically says that XSLT processors are not required
to maintain any attribute order...
and the XML spec:
http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-starttags
>>> [EMAIL PROTECTED] 2006/02/22 12:13 PM >>> Dear all, I'ld like to generate a simple xml/html page with a xsl transformation. I wondering that I get the atrributes in an other order than I've given in the xsl stylesheet. Here are the files: ### BEGIN starget.xml ### <?xml version="1.0" encoding="UTF-8"?> <Document> <Item file="http://www.hottemax.org" target="_blank"/> </Document> ### END starget.xml ### ### BEGIN starget.xsl ### <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:apply-templates select="Document/Item"/> </xsl:template> <xsl:template match="Item"> <a href="" target="[EMAIL PROTECTED]">Testlink</a> </xsl:template> </xsl:stylesheet> ### END starget.xsl ### ### BEGIN sitemap.xmap entry ### <map:pipeline match="de_DE/test/starget.xml"> <map:generate src=""/> <map:transform type="xslt" src=""/> <map:serialize type="xml"/> </map:pipeline> ### END sitemap.xmap entry ### I get the output: ### BEGIN OUTPUT ### <a target="_blank" href="">Testlink</a> ### END OUTPUT ### But I would expect: <a href="" target="_blank">Testlink</a> Many thanks for help Frank -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse f*r Mail, Message, More +++ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice CSIR Copyright, Terms and Conditions For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk
|