TAILIEUCHUNG - Beginning XML with DOM and Ajax From Novice to Professional phần 7

Msxsl tiền tố là quy ước cho các phần mở rộng IE, tuy nhiên, các văn bản chính nó là không đáng kể. Bạn có thể sử dụng bất kỳ tiền tố khác, cung cấp mà bạn sử dụng nó một cách nhất quán. Thứ hai của tờ khai không gian tên mới xác định tiền tố người sử dụng. | CHAPTER 8 SCRIPTING IN THE BROWSER 251 Load Invalid XML From URL XML xml version encoding UTF-8 parsererrorxmlns http newlayout xml XML Parsing Error mismatched tag. Expected Ẵlt missing_DVD_closing_elementÂgt . Location flle E aip clients FriendsOfEd Beginning 20XML 20for 20Practical 20Web 20Development Revised Chapter 207 resources Line Number 19 Column 3 sourcetext lt libraryẴgt -A s 0 u rcetextxyparse re rror Parse error -1 Figure 8-7. An XML document that isn t well formed displayed in Firefox IE acts a little differently from Mozilla as it won t display any XML content from a document that is not well formed. In IE you wouldn t see any XML output at all. XSLT Manipulation In Chapters 6 and 7 I worked through XSLT transformation techniques that allowed you to generate XHTML content from XML. MSXML includes the methods transformNode and transformNodeToObject . As these methods aren t available in Mozilla they ve been added to the xDOM library. The transformNode method returns the transformed content as a string whereas transformNodeToObject populates the DOMDocument object passed as a parameter. The MSXML transformNodeToObject method can send the results to an IStream which can stream information into Microsoft components. However because this is Microsoft-specific xDOM doesn t support the feature. Applying Stylesheets to Documents The test page contains an example that uses transformNode and transformNodeToObject function onLoad_XSLtdOM if 4 var strOutput var oOutput strOutput oXSLT oXSLT oOutput divTransformNodeXSLT .innerHTML doReplace divTransformNodeResult .innerHTML strOutput strOutput DVD 1 .transformNode oXSLT divTransformNodePartOfTree .innerHTML strOutput 252 CHAPTER 8 SCRIPTING IN

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.