XML mode-detailed introduction to DocBookXML

Source: Internet
Author: User
Being able to write a document and then create it in a variety of different output formats has been a dream of many development teams for years. It can be implemented through DocBookXML, which not only maintains semantic tags, but also controls data formatting and output. The control semantics can specify the chapters and paragraphs of a document. You can further detail the items contained in the section. For example, you can write a document and create it in different output formats. this was a dream of many development teams for years. It can be implemented through DocBook XML, which not only maintains semantic tag, but also controls data formatting and output. The control semantics can specify the chapters and paragraphs of a document. You can further detail the items contained in the section. For example
Being able to write a document and then create it in a variety of different output formats has been a dream of many development teams for years. It can be implemented through DocBook XML, which not only maintains semantic tag, but also controls data formatting and output.
The control semantics can specify the chapters and paragraphs of a document. You can further detail the items contained in the section. For example, you can place the command and function names in a separate tag, as shown in listing 8.
Listing 8. Use a separate label to encapsulate commands and functions

 
  The 
  compile takes the source code of the material and builds a new class based on the filename. For example, if the filename is
  
   HelloWorld
   then the name of the class generated will be
  
   HelloWorld
  .
 



When displaying different elements, you can select different output styles and formats or the same style. More importantly, because semantic information is returned (for example, a document may contain a reference to a class name ), therefore, you can use the index to generate a list (this list contains all the class names described in detail in the document ).
In addition to semantic tags, you can use special ID tags to mark chapters and different parts of a document and use these IDs to establish links to different parts of the document. Some types can be automatically completed (chapter, part, and other types of directory generated), others need to be clearly established to other parts of the link.
When converted to the target format, these links can be automatically converted to the appropriate format. For example, this link is converted to an appropriate HTML page or an anchor link in the page. If you want to generate a PDF file, you can include the page number of the target chapter.
This type of conversion is completed by the XSLT style table. The existing standard DocBook XSLT style sheets support conversion to standard HTML, XHTML, PDF (through the FO standard), Texinfo, Java Help, and Man pages. Using a standard style sheet, you can also convert data into various sizes and styles, books, A4 pages, and slides.
Flexibility of various output formats and tags means that when creating a document, you can use the same document source code to provide printed manuals, embedded help, man pages, online and context-aware information. With a more traditional model, you can write these elements separately.
DocBook XML has been widely recognized in the technical article community, and all documents in many companies use DocBook XML standards (or a subset of it ).

The above is the XML Schema-detailed introduction to DocBook XML. For more information, see other related articles in the first PHP community!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.