BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XALAN
org.apache.xalan.xslt.EnvironmentCheck Class
org.apache.xalan.xsltc.trax.TransformerFactoryImpl Class
org.apache.xalan.xsltc.trax.TemplatesImpl Class
org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl Class
org.apache.xalan.xsltc.trax.DOM2SAX Class
org.apache.xalan.transformer.XalanProperties Class
org.apache.xalan.transformer.TrAXFilter Class
org.apache.xalan.transformer.TransformerIdentityImpl Class
org.apache.xalan.processor.TransformerFactoryImpl Class
org.apache.xalan.lib.sql.XConnection Class
javax.xml.transform.sax.TemplatesHandler Class
XALAN Getting Started with XSLTC
The Usage of XALAN
Overview of XALAN - Java
<< WCF, WS, SOAP
XHTML >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :1232

 

Xalan: The org.apache.xalan.xslt.Process Class

Extends: java.lang.Object

Members

Signature

Public methods

static void

main(java.lang.String[] args)

Overview

Command line interface to transform an XML document according to the instructions found in an XSL stylesheet.

The Process class provides basic functionality for performing transformations from the command line. To see a list of arguments supported, call with zero arguments.

To set stylesheet parameters from the command line, use -PARAM name expression. If you want to set the parameter to a string value, simply pass the string value as-is, and it will be interpreted as a string. (Note: if the value has spaces in it, you may need to quote it depending on your shell environment).

Example of Usage

Generally it is used to as below:

java org.apache.xalan.xslt.Process –IN input.xml –XSL input.xsl –OUT output.html

The above commandline option will transform input.xml by applying input.xsl and will produce output.html.

You can give different options as below.

Xalan-J command line Process class options:

                        -Common Options-

   [-XSLTC (use XSLTC for transformation)]

   [-IN inputXMLURL]

   [-XSL XSLTransformationURL]

   [-OUT outputFileName]

   [-E (Do not expand entity refs)]

   [-EDUMP {optional filename} (Do stackdump on error.)]

   [-XML (Use XML formatter and add XML header.)]

   [-TEXT (Use simple Text formatter.)]

   [-HTML (Use HTML formatter.)]

   [-PARAM name expression (Set a stylesheet parameter)]

   [-MEDIA mediaType (use media attribute to find stylesheet associated with a d

ocument.)]

   [-FLAVOR flavorName (Explicitly use s2s=SAX or d2d=DOM to do transform.)]

   [-DIAG (Print overall milliseconds transform took.)]

   [-URIRESOLVER full class name (URIResolver to be used to resolve URIs)]

   [-ENTITYRESOLVER full class name (EntityResolver to be used to resolve entiti

es)]

(press <return> to continue)

   [-CONTENTHANDLER full class name (ContentHandler to be used to serialize outp

ut)]

                        -Options for Xalan-

   [-QC (Quiet Pattern Conflicts Warnings)]

   [-TT (Trace the templates as they are being called.)]

   [-TG (Trace each generation event.)]

   [-TS (Trace each selection event.)]

   [-TTC (Trace the template children as they are being processed.)]

   [-TCLASS (TraceListener class for trace extensions.)]

   [-L use line numbers for source document]

   [-INCREMENTAL (request incremental DTM construction by setting http://xml.apa

che.org/xalan/features/incremental true.)]

   [-NOOPTIMIMIZE (request no stylesheet optimization proccessing by setting htt

p://xml.apache.org/xalan/features/optimize false.)]

   [-RL recursionlimit (assert numeric limit on stylesheet recursion depth.)]

                        -Options for XSLTC-

   [-XO [transletName] (assign the name to the generated translet)]

   [-XD destinationDirectory (specify a destination directory for translet)]

(press <return> to continue)

   [-XJ jarfile (packages translet classes into a jar file of name <jarfile>)]

   [-XP package (specifies a package name prefix for all generated translet clas

ses)]

   [-XN (enables template inlining)]

   [-XX (turns on additional debugging message output)]

   [-XT (use translet to transform if possible)].


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Integration Specialist Needed - Wor
Virtualization Server Infrastructur
A great opportunity to Digital Vide
here is a greate opportunity as a S
A great opportunity as a Network En

View all Jobs (Add yours)
View all CV (Add yours)




swimming pool builder
chicago web site design
silicone masks
Cheap Web Hosting
conference calls
Gucci sunglasses
answering service


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP