Subject: RE: [xsl] new user xslt From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 26 Apr 2002 11:13:13 +0100 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] new user xslt, David Carlisle | Thread | RE: [xsl] new user xslt, CHAOUI Hassan |
RE: [xsl] Can any body says me how , Michael Kay | Date | RE: [xsl] Finding corresponding nod, Michael Kay |
Month |