Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: 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 2:25:00 PM Peter, There are coming from different sources--we have decide call each on source not para. TIA "Peter Flynn" <peter.nosp@m...> wrote in message news:425i63F1hqs4dU2@i...... > 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 | |||
|
