You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Steve Hathaway <sh...@e-z.net> on 2011/12/10 17:54:12 UTC
Xalan-C ref: In-Memory Content, Entity Resolvers, Top-level Parameters
Ajay,
Here is a work-around for in-memory XML content if you are having
problems creating useful entity resolvers.
A new capability in Xalan-C in the repository allows parsed XML sources
to be imported into stylesheets using top-level parameters. Before your
transformation, you can create parsed documents from a variety of
sources. You can then pass the parsed documents as XObject parameters to
your stylesheets.
Inside your stylesheet, you can treat the XObject parameters anywhare a
nodeset is allowed.
The <xsl:copy-of> and <xsl:for-each> can work with your documents
without parsing them again in the stylesheet context.
Refer to JIRA XALANC-451 for an implementer's discussion.
ref: https://issues.apache.org/jira/browse/XALANC-451
This capability has been committed as part of the Xalan-C project.
Sincerely,
Steven J. Hathaway
<sh...@apache.org>