cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: XSLT select: does case matter in tag cames?
Date Fri, 02 Aug 2002 16:40:58 GMT
Yes, in the whole XML world size matters. The behaviour you describe is 
really strange. It never encountered to me.

Regards,

Joerg

Alan Hodgkinson wrote:
> Dear All,
> 
> WARNING: I'm a Cocoon newbie..
> 
> I'm implementing an XSLT transformation that generates HTML 
>>from XML.
> 
> It all works fine except that the XML that gets generated has 
> some tags with names in upper case (Yeah, it's lame. I'm 
> trying to extend somone else's code). 
> 
> When using my Cocoon pipeline and XSLT sheet, and tries to 
> match on those tags using a select with the upper case version 
> of the tag name, it never matches. However, when I try matching 
> with lower case to so the select, it works fine.
> 
> E.g. in the generated XML I have:
> 
>   <category>
>     <NAME>some name</NAME>
>     ...
> 
> In my XSLT sheet, I have:
> 
>  <xsl:template ..that matches on 'category'..
>    <xsl:value-of select="NAME">
> 
> This never matches unless I use the string "name", instead of
> "NAME" in the select. This wouldn't bother me, except that when
> I'm debugging the XSLT transformation on the command line, the
> lower case doesn't match.
> 
>>>From what I remember of XML and XSLT (the xalan processor anyways), 
> size matters ;). Is there some Cocoon 'feature' or 'option' that's 
> tryng to help me out?
> 
> Many thanks in advance,
> 
> Alan Hodgkinson
> Luzern, Switzerland

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
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