This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: dynamic grouping of tabular data; one or two transformations?


Q1) yup you will always get utf-16 if you transform to a string at any
point because strings are encoded as utf-16. see my previous post
because transforming to an object usually gets around that.
Q2) don't worry about it. The antibiotics will clear it up or it will
all come out in the wash.

Although this looks a bit suspect
> <?xml-stylesheet 
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"?>
It should be 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
?Is it a typo?

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Dan Diebolt
> Sent: 25 November 2001 00:12
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] dynamic grouping of tabular data; one or 
> two transformations? 
> 
> 
> I am integrating my "dynamic grouping"  stylesheets into 
> Chris' <msxsl> solution and I am finding two immediate problems.
> 
> Here is a fragment from the output of the first stylesheet:
> 
>   <?xml version="1.0" encoding="UTF-16"?>
>   <?xml-stylesheet 
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"?>
>   <xsl:key name="KeyA" match="row" use="A"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; />
>   <xsl:key name="KeyB" match="row" use="B"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; />
> 
> Q1) I can't seem to specify the output encoding to UTF-8 or 
> Windows-1252.
>     It always shows up at UTF-16 despit my definition:
> 
>    <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
> 
> Q2) I am getting default namespaces raining down on all of my 
> elements:
> 
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> 
>     When the code to generate the keys has no such references to such
>     an attribute:
> 
> <xsl:param name="GroupBy" select="'A B'"/>
> ...
> <xsl:call-template name="GenKeys">
>   <xsl:with-param name="GroupBy" select="$GroupBy"/> 
> </xsl:call-template> 
> ...
>  <xsl:template name="GenKeys">
>   <xsl:param name="GroupBy"/>
>   <xsl:variable name="nlist" 
> select="concat(normalize-space($GroupBy),' ')"/>
>   <xsl:variable name="head" select="substring-before($nlist,' ')"/>
>   <xsl:variable name="tail" select="substring-after($nlist,' ')"/> 
>   <xsl:element name="xsl:key">
>    <xsl:attribute name="name">Key<xsl:value-of 
> select="$head"/></xsl:attribute>
>    <xsl:attribute name="match">row</xsl:attribute>
>    <xsl:attribute name="use"><xsl:value-of 
> select="$head"/></xsl:attribute>
>   </xsl:element>
>   <xsl:if test="$tail">
>    <xsl:call-template name="GenKeys">
>     <xsl:with-param name="GroupBy" select="$tail"/>
>    </xsl:call-template>
>   </xsl:if>
>  </xsl:template>
> 
> Any help would be appreciated.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just 
> $8.95/month. http://geocities.yahoo.com/ps/info1
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]