This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21059 - [XPROCTS] Test err:XD0023 - #007
Summary: [XPROCTS] Test err:XD0023 - #007
Status: NEW
Alias: None
Product: XML Processing Model
Classification: Unclassified
Component: Pipeline language (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Norman Walsh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 15:30 UTC by Tim Mills
Modified: 2013-02-27 14:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2013-02-20 15:30:10 UTC
This test does not require evaluation of $var1, and therefore never need trigger the out-of-scope variable problem.  Thus XD00023 need not be raised.

<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc">
      <p:input port="source" />
      <p:variable name="var1" select="$var2" />
      <p:variable name="var2" select="'value'" />

      <p:identity>
        <p:input port="source">
          <p:inline><doc /></p:inline>
        </p:input>
      </p:identity>

      <p:sink />
    </p:declare-step>
Comment 1 Vojtech Toman 2013-02-27 14:53:25 UTC
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=21015#c1