Altova Mailing List Archives
>microsoft.public.xml Archive Home
>Recent entries
>Thread Prev - Error in XSL
>Thread Next - Re: Error in XSL
Re: Error in XSL
To: NULL
Date: 1/19/2007 2:34:00 PM
"Antonio Lima" <antonio.lima@s...> wrote in message news:eLIMLY9OHHA.1276@T...... > Hi guys, > > im trying to test a group function with XSL/XML but the result is always in > chinese... > Any hint ??? > > Tks > > My code below: > > XSL: > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="2.0"> MSXML doesn't know what version "2.0" is use "1.0" > > <xsl:output method="text"/> > > <xsl:template match="files"> > > <xsl:for-each-group select="file" group-by="@project"> > <xsl:value-of select="current-grouping-key()"/> > <xsl:text> > </xsl:text> > </xsl:for-each-group> > > </xsl:template> > > > </xsl:stylesheet> > > > XML: > <files> > <file name="swablr.eps" size="4313" project="mars"/> > <file name="batboy.wks" size="424" project="neptune"/> > <file name="potrzebie.dbf" size="1102" project="jupiter"/> > <file name="kwatz.xom" size="43" project="jupiter"/> > <file name="paisley.doc" size="988" project="neptune"/> > <file name="ummagumma.zip" size="2441" project="mars"/> > <file name="schtroumpf.txt" size="389" project="mars"/> > <file name="mondegreen.doc" size="1993" project="neptune"/> > <file name="gadabout.pas" size="685" project="jupiter"/> > </files> > > > ASP: > <% > set xmlDoc = server.createObject( "MSXML2.DOMDocument" ) > xmlDoc.async = false > xmlDoc.load ( server.mappath( "teste.xml" ) ) > > set xslDoc = server.createObject( "MSXML2.DOMDocument" ) > xslDoc.async = false > xslDoc.load ( server.mappath( "teste.xsl" ) ) > Add the following lines here:- Response.ContentType = "text/plain" Response.CharSet = "UTF-8" > xmlDoc.transformNodeToObject xslDoc, Response 'exibe dados > %> > > > >
Disclaimer
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 www.altova.com/list/index.html. 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.

