Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Transforming only a portion of xml element >Thread Next - Re: Transforming only a portion of xml element Re: Transforming only a portion of xml elementTo: NULL Date: 1/5/2006 9:42:00 PM Aaron wrote: > Hello, > > I am a newbie on XSL-- here below is a segment of data.xml. > > <xml...> > <title>.........</title> > <para1>Democrats haven't completely given up the notion of filibustering > Samuel Alito's nomination to the Supreme Court, though they're certainly not > talking about it before his confirmation hearings. A slip of the tongue, an > intractable attitude or a dramatic revelation next week could still bring > another Senate showdown.</para1> > <para2>.........</para2> > <para3>.........</para3> > </xml> The immediate thing that frightens me about this is having element types called para1, para2, para3... Normally the paragraphs would all just be of type para. Is there some special reason for the numbered naming? > My question is: > Is it possible for para1 element, to get the 1st 50 spaces of text including > the spaces? <xsl:value-of select="substring(normalize-space(para1),1,50)"/> ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
