Learning XML phần 2

và các ví dụ thuyết phục khác. Học XML cho thấy mục đích của đánh dấu XML, CSS và các ngôn ngữ phong cách XSL, và các chi tiết kỹ thuật XLink và XPointer để tạo ra các cơ cấu liên kết giàu. Lời nói gì Bên trong ví dụ Công ước Phong cách bình luận và câu hỏi Lời cảm ơn 1 Giới thiệu XML là gì? Nguồn gốc của XML | Learning XML Chapter 2. Markup and Core Concepts This is probably the most important chapter in the book as it describes the fundamental building blocks of all XML-derived languages elements attributes entities and processing instructions. It explains what a document is and what it means to say it is well-formed or valid. Mastering these concepts is a prerequisite to understanding the many technologies applications and software related to XML. How do we know so much about the syntactical details of XML It s all described in a technical document maintained by the W3C the XML recommendation http TR 2000 REC-xml-20001006 . It s not light reading and most users of XML won t need it but you many be curious to know where this is coming from. For those interested in the standards process and what all the jargon means take a look at Tim Bray s interactive annotated version of the recommendation at http axml . page 25 Learning XML The Anatomy of a Document Example shows a bite-sized XML example. Let s take a look. Example A Small XML Document xml version time-o-gram pri important to Sarah to subject Reminder subject mesSage Don t forget to recharge K-9 emphasis twice a day emphasĩs . Also I think we shoUld have his bearings checked out. See you soon or late . I have a date with some villain Daleks vi llain . message from The Doctor from time-o-gram It s a goofy example but perfectly acceptable XML. XML lets you name the parts anything you want unlike HTML which limits you to predefined tag names. XML doesn t care how you re going to use the document how it will appear when formatted or even what the names of the elements mean. All that matters is that you follow the basic rules for markup described in this chapter. This is not to say that matters of organization aren t important however. You should choose element names that make sense in the context of the document instead of random things like signs of the zodiac. This is

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
3    244    1    15-05-2024
20    75    2    15-05-2024
Đã 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.