package.html revision 9f8118474e9513f7a5b7d2a05e4a0fb15d1a6569
1<!-- 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17--> 18<!-- $Id: package.html 468640 2006-10-28 06:53:53Z minchau $ --> 19<html> 20 <title>Xalan Processor Package.</title> 21 <body> 22 <p>Parses an XSLT stylesheet document (which may include and import other stylesheet documents) and produces a StylesheetRoot 23 (a TRaX Templates object).</p> 24 25 <p>StylesheetProcessor implements the TRaX {@link javax.xml.transform.TransformerFactory} interface, 26 as well as the {@link javax.xml.transform.sax.SAXTransformerFactory} interface. 27 It registers the {@link org.apache.xalan.processor.StylesheetHandler} object 28 (a TrAX {@link javax.xml.transform.sax.TemplatesHandler} implementation) 29 as the SAX ContentHandler for an XMLReader, and uses the XMLReader to parse 30 the stylesheet document.</p> 31 <p>Before parsing the XSLT input, StylesheetHandler assembles an {@link org.apache.xalan.processor.XSLTSchema}, 32 which uses {@link org.apache.xalan.processor.XSLTElementDef} 33 and {@link org.apache.xalan.processor.XSLTAttributeDef} objects to 34 recursively define the elements and attributes that an XSLT stylesheet may 35 contain. The StylesheetHandler then passes on each parse event to the 36 {@link org.apache.xalan.processor.XSLTElementProcessor} which the 37 XSLTElementDef assigned to the element associated with that event.</p> 38 </body> 39</html> 40 41 42