[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generic Element to Attribute String Conversion
John,
At 02:40 PM 2/4/2005, you wrote: Your question has a simple answer, but it also contains a possible "gotcha" that is potentially very important. Yes, Saxon has a saxon:evaluate() extension for this (given an arbitrary string, evaluate as XPath), and other processors may have their own versions. and then spliced together, this is most easily achieved by a recursive string-chopping template (or possibly by string-replacement functionality in XSLT 2.0). Try recursive templates, string replacement: "string-chopping" is just the way I described it (though you might get lucky). The FAQ has a section on "General String Replace": see http://www.dpawson.co.uk/xsl/sect2/StringReplace.html. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|