W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2008

Re: p:schema-import

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 19 May 2008 16:37:52 +0100
Message-Id: <12F007F7-88E3-4CD7-B28A-0C20DE03368C@jenitennison.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>

On 17 May 2008, at 16:26, Norman Walsh wrote:
> It occurs to me that if we want to support expressions like this:
> |  <p:choose>
> |   <p:when test="p:psvi-available()">
> |    <p:delete match="element(*,my:doomedType)"/>
> |   </p:when>
> we're going to need a p:schema-import statement to provide type
> information to the XProc processor.

No new features! (Well, it's worth a shot ;)

Seriously, we could say that for XProc v1, even if you're using XPath  
2.0, the in-scope schema definitions are all empty. If you want to do  
schema-aware processing, you have to use XQuery or XSLT or another  
schema-aware step to do so.

Then an implementation could offer a <psvi-aware:delete> step; the  
implementation's definition of psvi-aware:delete would include  
information about how the in-scope schema definitions are populated  
prior to the evaluation of the 'match' option (eg through another  
option or parameters, using the PSVI itself, using a fixed set of  
known namespaces, ...).

Jeni Tennison
Received on Monday, 19 May 2008 15:38:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:46 UTC