cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirchhoff, Lars" <Lars.Kirchh...@wincor-nixdorf.com>
Subject AW: xslt processor and utf-8
Date Tue, 07 Jan 2003 09:28:05 GMT
I'm sorry i mixed the xml and the xsl stylesheet a bit 
up in the example...

this is the stylesheet that just puts the required letter
in the xml file before the xmlform action will enroll the 
data from the dom.

<xsl:template match="xf:itemset">
  <xf:itemset>
    <xsl:attribute name="nodeset">/users/user[@letter='<xsl:value-of
select="$Letter" />'] 
    </xsl:attribute>	
  </xf:itemset>
</xsl:template>

so maybe this is not an xslt problem, but an xpath problem, because 
the utf-8 letter is included correctly even after url encoding and
back. 

best regards
Lars 

> -----Urspr√ľngliche Nachricht-----
> Von: Joerg Heinicke [mailto:joerg.heinicke@gmx.de]
> Gesendet: Dienstag, 7. Januar 2003 17:23
> An: cocoon-users@xml.apache.org
> Betreff: Re: xslt processor and utf-8
> 
> 
> Hello Lars,
> 
> Kirchhoff, Lars wrote:
> > Hello,
> > 
> > I have some problems with the xsl transformation in 
> > combination with utf-8 characters and am wondering if
> > somebody could explain me this. 
> > 
> > I used this code to select specific items depending on 
> > there letter, which means the letter they start with. 
> > 
> >  <xsl:param name="Letter"/>
> >  <xf:itemset nodeset="/users/user[@letter='<xsl:value-of 
> select="$Letter"
> > />']">
> >  </xf:itemset>
> 
> I wonder, how this can work. It's not well-formed XML, so it must not 
> work for ISO-8859-1 too.
> 
> What about <xf:itemset nodeset="/users/user[@letter=$Letter]">?
> 
> Regards,
> 
> Joerg
> 
> > The param Letter is extracted from the uri. It all 
> > works fine if i just take normal iso8859-1 encoding or
> > characters. 
> > But now I'm using unicode characters as well and it's
> > not working anymore. 
> > 
> > I printed out the letter attribute in the dom node
> > as well as the Letter parameter and both seem to be 
> > the same. 
> > 
> > Is it possible that there are maybe some problems 
> > with the xslt engine in combination with utf-8?
> > 
> > ciao Lars
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message