com.sun.xml.xsl.package.html Maven / Gradle / Ivy
The newest version!
XSL Package Overview
This package holds an implementation of most of the rule-based
parts of XSL.
It includes no macros, constants, conditionals, or other sorts
of procedural extensions; and does not include any support for
using the formatting objects to render output.
As of this writing the implementation supports:
- Some of the XSL elements:
xsl:stylesheet,
xsl:template,
xsl:process-children,
xsl:import,
and
xsl:include.
- Match patterns that don't use "//" (ancestor-of), element
qualifiers (required children, attribute values, and positions),
or anchors (based on specific ID attributes).
The XSL namespace must be correctly declared; when this is done,
the exact prefix used does not matter.
To use one of these stylesheets:
StyleSheet sheet = XslBuilder.createStyleSheet (uri);
Document input = ...;
Document output = sheet.apply (input);
The API and functionality is extremely subject to change;
also, no performance work has been done.
Applications wishing to support the
<?xml-stylesheet ... ?> processing instruction
(see the
Proposed Recommendation from W3C) will need to handle
such processing instructions in the input document by invoking
the appropriate stylesheet. This is most naturally done
by scanning children of the document until the root element
is found, and interpreting all such processing instructions
(for primary or alternate stylesheets).
© 2015 - 2025 Weber Informatics LLC | Privacy Policy