You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "RAHMAN,ABDUR (HP-Sunnyvale,ex1)" <ab...@hp.com> on 2001/03/12 23:06:56 UTC

XERCES 2 availability

We want to use Xerces 2 later on when it becomes available due to it's
advanced parsing capability. Does anyone know when will Xerces 2 be
available? 

Thanks!

Abdur Rahman
Hewlett-Packard

P.S.- I'm not currently in the mailing list. use my email address to send me
mail.

-----Original Message-----
From: Samson, Lyndon [IT] [mailto:lyndon.samson@ssmb.com]
Sent: Monday, February 26, 2001 2:01 AM
To: 'general@xml.apache.org'
Subject: XSLT Interesting behaviour


Hi Listers

I want to control the output of matches based on an order tag. Something
like this;

Input

<allthings>
  <thing id='1'>Thing1</thing>
  <thing id='2'>Thing2</thing>
  <thing id='3'>Thing3</thing>

  <orderofthings>
    <thing>2</thing>
    <thing>1</thing>
    <thing>3</thing>
  </orderofthings>

</allthings>

Template 

<xsl:template match="/allthings/orderofthings/*">
  <xsl:variable name="thisval"><xsl:value-of select="."/></xsl:variable>
  <xsl:apply-templates select="/allthings/thing[@id=$thisval]"/>
</xsl:template>

Output

Thing2
Thing1
Thing3

This works but I would have thought that the best way to define the template
would be;

<xsl:template match="/allthings/orderofthings/*">
  <xsl:apply-templates select="/allthings/thing[@id=text(.)]"/>
</xsl:template>

But this doesn't seem to work, what have I missed? Can I not use functions
in expressions?



thanks
l

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: XERCES 2 availability

Posted by Andy Clark <an...@apache.org>.
"RAHMAN,ABDUR (HP-Sunnyvale,ex1)" wrote:
> We want to use Xerces 2 later on when it becomes available due to it's
> advanced parsing capability. Does anyone know when will Xerces 2 be
> available?

An alpha version of Xerces2 is available from the download
page: http://xml.apache.org/dist/xerces-j/ . However, if you
are looking for a production level release, *that* is farther
out on the horizon.

Currently, the code is stable but has the following limitations:

  * there is still design work to be done, therefore XNI may
    change from its present form
  * there is no Schema support, yet
  * the code has not been tuned for performance

However, the design work is proceeding so that we can support
the following features:

  * independent grammar loading and caching
  * advanced grammar access
  * write-validation of documents
  * custom parser configurations

There are continuing design discussions occurring on the
xerces-j-dev mailing list. Please join that mailing list in
order to follow the discussion and participate -- especially
if you want to incluence how XNI is defined! :)

The actual implementation work will proceed based on the
amount of help that we get from the Xerces developer
community. Since Xerces 1.x is our production parser, all
of the current Schema work is being done there first to
ensure that users get the needed functionality in a
production level parser. Then it will either be ported
forward into the Xerces2 codebase, or (more likely) the
validation engine will receive the same kind of redesign
as the parser in order to improve its capabilities and
maintainability.

If you have the extra cycles, we'd appreciate your help.

-- 
Andy Clark * IBM, TRL - Japan * andyc@apache.org

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org