Java Doc for XSLTProcessor.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » xslt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.xslt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.xslt.XSLTProcessor

All known Subclasses:   org.apache.cocoon.components.xslt.XSLTProcessorImpl,  org.apache.cocoon.components.xslt.TraxProcessor,
XSLTProcessor
public interface XSLTProcessor extends Component(Code)
This is the interface of the XSLT processor in Cocoon.
author:
   Ovidiu Predescu
version:
   CVS $Id: XSLTProcessor.java 433543 2006-08-22 06:22:54Z crossley $
version:
   1.0
since:
   July 11, 2001


Field Summary
 StringDEFAULT_FACTORY
     The default factory identifier.
 StringROLE
     The role implemented by an XSLTProcessor.


Method Summary
 TransformerHandlergetTransformerHandler(Source stylesheet, XMLFilter filter)
    

Return a TransformerHandler for a given stylesheet Source.

 TransformerHandlergetTransformerHandler(Source stylesheet)
     Same as XSLTProcessor.getTransformerHandler(Source,XMLFilter) , with filter set to null and factory set to null.
 voidsetSourceResolver(SourceResolver resolver)
     Set the org.apache.cocoon.environment.SourceResolver for this instance.
 voidsetTransformerFactory(String classname)
     Set the TransformerFactory for this instance. The factory is invoked to return a TransformerHandler to perform the transformation.
Parameters:
  classname - the name of the class implementingTransformerFactory value.
 voidtransform(Source source, Source stylesheet, Parameters params, Result result)
     Applies an XSLT stylesheet to an XML document.

Field Detail
DEFAULT_FACTORY
String DEFAULT_FACTORY(Code)
The default factory identifier. (simply used as a pointer, the actual content is not meaningful)



ROLE
String ROLE(Code)
The role implemented by an XSLTProcessor.





Method Detail
getTransformerHandler
TransformerHandler getTransformerHandler(Source stylesheet, XMLFilter filter) throws ProcessingException(Code)

Return a TransformerHandler for a given stylesheet Source. This can be used in a pipeline to handle the transformation of a stream of SAX events. See org.apache.cocoon.transformation.TraxTransformer.setConsumer(org.apache.cocoon.xml.XMLConsumer) for an example of how to use this method.

The additional filter argument, if it's not null, is inserted in the chain SAX events as an XML filter during the parsing or the source document.

This method caches the Source object and performs a reparsing only if this changes.
Parameters:
  stylesheet - a Source value
Parameters:
  filter - a XMLFilter value a TransformerHandler value
exception:
  ProcessingException - if an error occurs




getTransformerHandler
TransformerHandler getTransformerHandler(Source stylesheet) throws ProcessingException(Code)
Same as XSLTProcessor.getTransformerHandler(Source,XMLFilter) , with filter set to null and factory set to null.
Parameters:
  stylesheet - a Source value a TransformerHandler value
exception:
  ProcessingException - if an error occurs
See Also:   org.apache.cocoon.transformation.TraxTransformer.setConsumer(org.apache.cocoon.xml.XMLConsumer)



setSourceResolver
void setSourceResolver(SourceResolver resolver)(Code)
Set the org.apache.cocoon.environment.SourceResolver for this instance. The resolver is invoked to return a Source object, given an HREF.
Parameters:
  resolver - a SourceResolver value



setTransformerFactory
void setTransformerFactory(String classname)(Code)
Set the TransformerFactory for this instance. The factory is invoked to return a TransformerHandler to perform the transformation.
Parameters:
  classname - the name of the class implementingTransformerFactory value. If an error is foundor the indicated class doesn't implement the required interfacethe original factory of the component is maintained.



transform
void transform(Source source, Source stylesheet, Parameters params, Result result) throws ProcessingException(Code)
Applies an XSLT stylesheet to an XML document. The source and stylesheet documents are specified as Source objects. The result of the transformation is placed in result, which should be properly initialized before invoking this method. Any additional parameters passed in params will become arguments to the stylesheet.
Parameters:
  source - a Source value
Parameters:
  stylesheet - a Source value
Parameters:
  params - a Parameters value
Parameters:
  result - a Result value
exception:
  ProcessingException - if an error occurs



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.