Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Get untagged text between elements >Thread Next - Re: Get untagged text between elements Re: Get untagged text between elementsTo: NULL Date: 2/4/2007 12:48:00 AM On 4 Feb., 00:03, Peter Flynn <peter.n...@m.silmaril.ie> wrote: > FMASwrote: > > I am transforming XML files which sometimes have untaged text between > > elements. > > > It looks like this: > > > <ut Style=3D"external" DisplayText=3D"bb"><bb "Document Numberi= ng > > Formats"></ut> > > <ut Style=3D"external" DisplayText=3D"bb"><bb "Custom Footnote > > Numbering"></ut>*=E2=80=A0=E2=80=A1 > > <ut Style=3D"external" DisplayText=3D"bb"><bb "Volume > > Numbering"></ut> > > > No problem to transform the content of tags. But I do not find a way > > to copy untagged text such as "*=E2=80=A0=E2=80=A1" in the example abov= e=2E > > > Any suggestion? > > a) This looks like rather poor design by someone who really > =C2=A0 =C2=A0 hasn't grasped the idea of XML properly. > > b) It also appears that they are trying to hide data marked in > =C2=A0 =C2=A0 another language within the XML. > > c) Use the text() function to access character data in Mixed Content > =C2=A0 =C2=A0 (which is what this resembles). > > ///Peter > -- > XML FAQ:http://xml.silmaril.ie/- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - I agree that this is ugly XML but it get parsed witout errors. The untaged text varies. It may be also numbers for chapters etc. I also thougt about the text() function, but it doesn' seem to help here as we are talking about input and not output. I have a structure like this: <tag>text I can get</tag>text I can't get<tag>text2 I can get</tag> I wonder if I have to preprocess the XML file, maybe with perl. But if it can be avoided so muc the better. Francois | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
