I'm using XSLT to transform an XML document. I'm forced to use XSLT 1.0, since the application that uses XSLT and XPATH is still on 1.0.

Would you use Javascript function embedded in XSL using regex?

I have xml code like this:
Code:
<document>
<content name="PROD_MAJ_CLS_CD" type="text" vse-streams="2" u="20" action="cluster" weight="1">2</content>
<content name="PART_DESC_SHORT" type="text" vse-streams="2" u="22" action="cluster" weight="1">AXLE GP (SID
</content>
</document>
Other possible values for PART_DESC_SHORT:
AXLE AS.(W/O
ARM AS-PUSH(
VALVE (VAC)
(M)BLK GUARD
KIT-A/C (D8T
SEAL (TRUMPE

How would you write Javascript function to do this and use it in XSL? Is it possible to do this in XSLT/XPATH itself?

Thanks,
Paul