SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 241 | Next

Thomas Powell

"Ajax: The Complete Reference"

com/ch4/bookmarks.xsl),
which first prints out the start of the bookmark table and the appropriate heading tags:





Next, use XPath to select out each tag found within the
tag:









C h a p t e r 4 : D a t a F o r m a t s 165
PART I
After the loop is finished executing, finish off the table:
BookmarkDescriptionRatingLast VisitTotal Visits







If you had an XML document holding the XSLT shown here in a variable named
bookmarkStylesheet, you could quickly apply it to the fetched bookmark content held in
xhr.responseXML:
var xsltProcessor = new XSLTProcessor();
xsltProcessor.importStylesheet(bookmarkStylesheet);
var resultDocument = xsltProcessor.


Pages:
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253