Processing "random" PCDATA

wxdqz

New Member
I have been assigned the task to see if you can reliably transform XHTML intoXHTML. I need to traverse the tree to apply a template to an element thatcan be several layers in, but essentially copy the rest of the data as is.An example would be change the path to an img, but keep the data aroundthe image the same. The problem is when there is data that is not containedin a child element.<div class="DocAuthors"><vau><vfau><vfaugiven>Michael</vfaugiven><vfaumiddle>E.</vfaumiddle><vfausur>O&rsquo;Dwyer</vfausur>,<vfaudeg>MD</vfaudeg></vfau>; Brian J. Druker, MD</vau></div>Right now I am doing checks to see if an element has children, if yes, thendo a check and check if it has children, so on and so on. When I use value-ofit seems to return the data of the children as well. Is there a way to getthe text not contained in a child element to format correctly relative tothe other child elements.Thanks for any helpEric
 
Back
Top