Learning XSLT

This chapter explained how you include and import stylesheets, and it discussed the difference between the two operations. You also saw how to use the apply-imports element. The following three ways to use document( ) are also the three most common ways to use the function:

document(`file.xml')

With one argument that is a string object representing a file.

document(@location)

With one argument that is a node-set containing a URI for a document.

document(`file.xml')/node

With one argument that is a string object representing a file, followed by a node-set from the file.

In the next chapter, you'll learn more details of how to use alternative stylesheets.

Категории