drewInJapan
Programmer
I've been beating my head against the wall for hours on this.
(note: I'm forced to use xslt 1.0 and I can't alter the way the xml being transformed is formatted)
Given the following xml doc:
I have to iterate through and output the titles while replacing the 'key' tags with html 'span' tags and the 'sep' tags with text ellipses, such as the following:
I won't waste space showing the multiple failed paths I've taken up to now trying to solve this unless it might be of help.
Any kind souls out there have any suggestions?
Thanks,
-Drew
(note: I'm forced to use xslt 1.0 and I can't alter the way the xml being transformed is formatted)
Given the following xml doc:
Code:
<?xml version="1.0" encoding="utf-8"?>
<SEGMENTS>
<HIT NO="1" >
<FIELD NAME="title">
<key>Ethics</key> in Your Org<sep/>
</FIELD>
</HIT>
<HIT NO="2" >
<FIELD NAME="title">
Ways to Promote <key>Ethics</key><sep/>
</FIELD>
</HIT>
</SEGMENTS>
I have to iterate through and output the titles while replacing the 'key' tags with html 'span' tags and the 'sep' tags with text ellipses, such as the following:
Code:
<span class="keyword">Ethics</span> in Your Org...
Ways to Promote <span class="keyword">Ethics</span>...
I won't waste space showing the multiple failed paths I've taken up to now trying to solve this unless it might be of help.
Any kind souls out there have any suggestions?
Thanks,
-Drew