Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Reply: Replace attribute content w/ attribute content

Date Posted:1/16/2009 3:12 PM
Posted by:
Robert Whalen
In the following, I want to replace the content of @corresp with that of @facs from the most immediately preceding <pb/> element, and keep everything else the same:

<pb ed="#w" facs="#w82v"/>
<fw corresp="#w" type="header" place="margin-top”>blah</fw>

<pb ed="#b" facs="#b141r"/>
<fw corresp="#b" type="header" place="margin-top">blah</fw>
<fw corresp="#b" type="folioNum" place="margin-right">blah</fw>

The desired output, then, is

<pb ed="#w" facs="#w82v"/>
<fw corresp="#w82v" type="header" place="margin-top”>blah</fw>

<pb ed="#b" facs="#b141r"/>
<fw corresp="#b141r" type="header" place="margin-top">blah</fw>
<fw corresp="#b141r" type="folioNum" place="margin-right">blah</fw>

where the only change is on each and every @corresp. Help?






Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Lexmark ink cartridges
optimum online sucks
halloween masks
premiere global
chicago web design
Alojamiento Web
Web Hosting
Geovision
Bvlgari sunglasses
Video Surveillance
Skype vs. sipcall

4,127 Total Members
13 members(last 30 days)
3 members(last 7 days)
0 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,138 Total Resources
3 Resources(last 30 days)
2 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139