ĭefines the DOMSource and DOMResult classes, which let you use a DOM as an input to or output from a transformation. The source and result objects are created using classes from one of the other three packages. You then configure the transformer with input (source) and output (result) objects, and invoke its transform() method to make the transformation happen. This package defines the factory class you use to get a Transformer object. Here is a description of the packages that make up the JAXP Transformation APIs: The remainder of this section describes the packages that make up the JAXP Transformation APIs. In that way, you can describe different kinds of translations for the different elements. It is an addressing mechanism that lets you specify a path to an element so that, for example, can be distinguished from. But to write a program for different parts of an XML data structure, you need to specify the part of the structure you are talking about at any given time. XPathĪt bottom, XSLT is a language that lets you specify what sorts of things to do when a particular element is encountered. (And as you will see in Generating XML from an Arbitrary Data Structure, a clever application can press it into service to manipulate non-XML data as well). You could even use it to produce plain text or to put the information in some other document format. ![]() For example, you might use XSLT to produce HTML or a different XML structure. This is the transformation language, which lets you define a transformation from XML into some other format. This subcomponent is not covered by JAXP, nor is it included in this tutorial. By far the largest subcomponent, this standard gives mechanisms for describing font sizes, page layouts, and other aspects of object rendering. The Extensible Stylesheet Language (XSL) has three major subcomponents: XSL-FO
0 Comments
Leave a Reply. |