Project

Profile

Help

Processing text() Multiple times

Added by Anonymous almost 20 years ago

Legacy ID: #3038838 Legacy Poster: Greg Mellinger (mellingg)

Is it possible in XSLT to process the contents of text() multiple times? For instance, I need to translate '--' to the corresponding Unicode value and other character strings to their corresponding Unicode value. We may also need to translate 'words' within text() to XML markup. At first glance, I could use analyze-string, but I would need to have numerous nested levels. The function replace(), translate(), when used within value-of send the results directly to the result-tree.


Replies (1)

RE: Processing text() Multiple times - Added by Anonymous almost 20 years ago

Legacy ID: #3039094 Legacy Poster: Michael Kay (mhkay)

It's best to raise XSLT coding questions on the xsl-list at www.mulberrytech.com - this list is for things that are Saxon-specific. You haven't described your problem very clearly, but I think the answer is probably: use variables. Michael Kay

    (1-1/1)

    Please register to reply