[
Lists Home |
Date Index |
Thread Index
]
Hello all,
I've just released a new version of my open-source smallx XML infoset
and
pipelining technology.
This release contains several significant enhancements:
1. The streaming XPath subset now supports positional and attribute test
predicates. This allows selection of subtrees based on position
(e.g. the second item element) or by presence of attributes or
attirbutes
with specific values.
For example:
<p:subtree select="xhtml:tr[2]">
<p:delete/>
</p:subtree>
will delete the second row from an XHTML table.
2. The [p:]let step has been added to allow binding of parameters
dynamically
to subtrees or values. This allows saving parts of documents for
processing
later in the pipeline. When all the variables have been bound,
processing continues.
For example, it is common that the input document contains
parameters to a
request that might need to be accessed throught the pipeline. This
step
binds two parameter 'order' and 'format' to attributes of the
'request' element.
<p:let>
<p:parameter name="order" select="/request/@order"/>
<p:parameter name="format" select="/request/@output"/>
<p:sequence>
...
</p:sequence>
</p:let>
3. The Netbeans module has been overhauled to support Netbeans 4.1 as
well as
to fix several issues.
For more information on this release, see the project website:
http://smallx.dev.java.net
or the changes files:
https://smallx.dev.java.net/source/browse/smallx/xml/CHANGES?
rev=1.1&view=markup
https://smallx.dev.java.net/source/browse/smallx/server/CHANGES?
rev=1.1&view=markup
-- Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of
the
inflexions, i.e. to the degree of analysis effected by the language
considered."
Bertrand Russell in a footnote of Principles of Mathematics
|