[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[Schematron] Question about let-Element and multiply defined variables

  • From: David Maus <lists@dmaus.name>
  • To: XML Developers List <xml-dev@lists.xml.org>
  • Date: Mon, 26 Nov 2018 13:22:43 +0100

[Schematron] Question about let-Element and multiply defined variables
Hi all,

Section 5.4.5 of Schematron 2016 reads:

,----
| 5.4.5 let element
|
| ...
|
| It is an error to reference a variable that has not been defined in
| the current schema, phase, pattern, or rule, if the query language
| binding allows this to be determined reliably. It is an error for a
| variable to be multiply defined in the current schema, phase, pattern
| and rule.
`----

I understand the last sentence "multply defined in the current schema,
phase, pattern and rule" to mean that I can define a variable in the
schema and then `redefine' the variable in a rule.

I.e. the following Schematron is *not* an error:

<schema xmlns="http://purl.oclc.org/dsdl/schematron">
  <let name="foo" value="'bar'"/
  <pattern>
    <rule context="/">
      <let name="foo" value="'baz'"/>
    </rule>
  </pattern>
</schema>

Is this the right interpretation?

Best,
  -- David

-- 
David Maus M.A.

Www: http://dmaus.name
Twitter: @_dmaus


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.