13.4 Summary

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.



Learning XSLT
Learning XSLT
ISBN: 0596003277
EAN: 2147483647
Year: 2003
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net