xsl-list
[Top] [All Lists]

Extract attribute from markup returned by extension function

2005-08-03 10:17:22
Hello,

An XSL extension function returns markup such as <img src="/path/to/image.jpg" border="0" alt="" />. I can't guarantee the / will be provided so it may not be XML markup. I am only interested in the value of the src attribute. I am hoping the code can be as flexible as possible (attributes could appear in any order, and it would be nice to support single quotes (') in addition to double-quotes (") in the data. I was thinking of starting with the string functions, but I am curious if there might be a better way.

TIA,

   -John

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>