Translate

Image of Beginning Google Maps API 3
Image of Modern Operating Systems (3rd Edition)
Image of Linux Kernel Development (3rd Edition)
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)

XSL Recognizing Newlines

One of the major improvements in XSLT2 is the support for sequences as a replacement for node-sets. One of the new functions that takes advantage of this support is the the tokenize() function. The tokenize() function is equivalent to Python’s split function which takes a string and a delimiter and returns an array of the substrings that were separated by the specified delimiter(s). Perl and Ruby have an equivalent split function while Unix shells such as zsh and ksh93 provide similar functionality via different mechanisms. Consider the following trivial example (file.xml): <?xml version="1.0"?> <root> <text>line1 line2 line3 line4</text> </root> Suppose