ru.sstu.xml
Class XslUtil

java.lang.Object
  extended by ru.sstu.xml.XslUtil

public final class XslUtil
extends Object

XslUtil class is utility class for XSL Transformations.

Since:
XML 1.0
Author:
Denis Murashev

Method Summary
static void transform(InputStream xml, InputStream xsl, OutputStream out)
          Transforms given xml using given xsl into out stream.
static void transform(Source xml, Source xsl, Result out)
          Transforms given xml using given xsl into out stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transform

public static void transform(InputStream xml,
                             InputStream xsl,
                             OutputStream out)
                      throws XmlException
Transforms given xml using given xsl into out stream.

Parameters:
xml - input stream with XML
xsl - input stream with XSL
out - output stream
Throws:
XmlException - if cannot transform

transform

public static void transform(Source xml,
                             Source xsl,
                             Result out)
                      throws XmlException
Transforms given xml using given xsl into out stream.

Parameters:
xml - source with XML
xsl - source with XSL
out - transformation result
Throws:
XmlException - if cannot transform


Copyright © 2011 TFI branch of Engels Instutute of Technology. All Rights Reserved.