[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: new user xslt

Subject: RE: new user xslt
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 29 Apr 2002 10:35:10 +0100
trailing spaces cell xslt
Please post a cut-down stylesheet and source document so we can see the
error in context, perhaps trying it on another processor. From this
information I don't understand it either, except to speculate that it might
be complaining that the value of normalize-space(cell[1]) is an empty string
and therefore not a valid element name.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> CHAOUI Hassan
> Sent: 29 April 2002 09:23
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: RE:  new user xslt
>
>
> Hy,
> I use eXcelon Stylus Studio.
> When I apply the normalize-space function at the first attribute:
> <xsl:element name="{normalize-space(cell[1])}">
>
> I have this message error :
> xsl:element must have a value for name attribute
>
> I don't understand ???
> Thank for helping
>
> -----Message d'origine-----
> De: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
> Date: vendredi 26 avril 2002 12:13
> À: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Objet: RE:  new user xslt
>
>
> Actually the XSLT processor should complain (which one are
> you using?).
>
> Use normalize-space() to remove the leading and trailing spaces:
>
> <xsl:element name="{normalize-space(cell[1])}">
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> > CHAOUI Hassan
> > Sent: 26 April 2002 10:24
> > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> > Subject: RE:  new user xslt
> >
> >
> > Thank's Michael,
> > When I apply the template, I have tags with  white space, and
> > the xml parser
> > refuse that.
> > How can I do to have proprely xml tags :
> >
> > <xsl:template match="row">
> >   <xsl:element name="{cell[1]}">
> >     <xsl:value-of select="cell[2]"/>
> >   </xsl:element>
> > </xsl:template>
> >
> > result :
> >
> >
> > <table>
> > 	<
> > 	x1
> > 	>
> > 	  y1
> > 	</
> > 	x1
> > 	>
> >     	<
> > 	x2
> > 	>
> >         y2
> >     	</
> > 	x2
> > 	>
> >  </table>
> >
> >
> >
> > +----------------------------------------------------------------+
> > | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> > | Si vous avez recu ce courrier par erreur, veuillez en informer |
> > | l'administrateur du systeme : exp-iris@xxxxxxxxx               |
> > |                          ---------                             |
> > | Ce message confirme que le courrier a passe le controle        |
> > | antivirus du relais de messagerie Internet avec succes.        |
> > +----------------------------------------------------------------+
> >
> >
> >  XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
> >
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>
> +----------------------------------------------------------------+
> | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> | Si vous avez recu ce courrier par erreur, veuillez en informer |
> | l'administrateur du système : exp-iris@xxxxxxxxx               |
> |                          ---------                             |
> | Ce message confirme que le courrier a passé le contrôle        |
> | antivirus du relais de messagerie Internet avec succés.        |
> +----------------------------------------------------------------+
>
>
> +----------------------------------------------------------------+
> | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> | Si vous avez recu ce courrier par erreur, veuillez en informer |
> | l'administrateur du systeme : exp-iris@xxxxxxxxx               |
> |                          ---------                             |
> | Ce message confirme que le courrier a passe le controle        |
> | antivirus du relais de messagerie Internet avec succes.        |
> +----------------------------------------------------------------+
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.