URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
772 |
jeremybenn |
<html><head>trax </head><body>
|
2 |
|
|
|
3 |
|
|
<p>Base "TRAX" API for XSLT transformers.
|
4 |
|
|
This API borrows many structural notions from SAX,
|
5 |
|
|
such as the way error handling and external entity
|
6 |
|
|
resolution are handled, although it does not reuse
|
7 |
|
|
the corresponding SAX classes.
|
8 |
|
|
To use XSLT transformers: <ul>
|
9 |
|
|
|
10 |
|
|
<li>Start with <em>TransformerFactory.newInstance()</em>;
|
11 |
|
|
|
12 |
|
|
<li>Then you may wish to configure that factory through
|
13 |
|
|
its features and properties. This includes modifying
|
14 |
|
|
the way errors are handled and URIs are resolved.
|
15 |
|
|
|
16 |
|
|
<li>Then you have several options for how to perform
|
17 |
|
|
the XSLT transformations. One generic option is to ask the
|
18 |
|
|
factory for a <a href="Transformer.html">Transformer</a>
|
19 |
|
|
and then use <em>Transformer.transform()</em> to pull
|
20 |
|
|
input text onto output text.
|
21 |
|
|
|
22 |
|
|
<li>Alternatively, most factories support flexible integration
|
23 |
|
|
with SAX event streams. You can cast such factories to a
|
24 |
|
|
<a href="sax/SAXTransformerFactory.html">SAXTransformerFactory</a>
|
25 |
|
|
and perform either push or pull mode transformations.
|
26 |
|
|
|
27 |
|
|
</ul>
|
28 |
|
|
|
29 |
|
|
<p>The <a href="OutputKeys.html">OutputKeys</a> class
|
30 |
|
|
holds constants that can be used to configure output
|
31 |
|
|
properties used with <em>Result</em> objects, as if
|
32 |
|
|
they were specified in <em>xslt:output</em> attributes
|
33 |
|
|
in the stylesheet specifying the transform.
|
34 |
|
|
|
35 |
|
|
<p>The <a href="Templates.html">Templates</a> class
|
36 |
|
|
accomodates the notion of "compiled" transforms.
|
37 |
|
|
|
38 |
|
|
</body></html>
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.