W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2012

[Bug 17040] New: Clarification on using defined prefixes in serialization and validate expr

From: <bugzilla@jessica.w3.org>
Date: Fri, 11 May 2012 16:44:05 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-17040-523@http.www.w3.org/Bugs/Public/>

           Summary: Clarification on using defined prefixes in
                    serialization and validate expr
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: XQuery 3.0
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: cezar.andrei@gmail.com
         QAContact: public-qt-comments@w3.org

Should the declared prefixes be serialized?

Ex 1: explicit declaration
  declare namespace cat ='mycat'; 
  <a t='cat:miau'>42</a>
Should result in:
  <a t='cat:miau'>42</a>
  <a xmlns:cat='mycat' t='cat:miau'>42</a>

Ex 2: implicit declaration of xsi and xs prefix
  <a xsi:type='xs:integer'>42</a>
Should result in:
  <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

Should the validate expression take into account the declared prefixes?

Ex 3: validate
  validate lax { <a xsi:type='xs:integer'>42</a> }
Should result in:
  Error: xs prefix not declared for QName value 'xs:integer'.
  <a xsi:type='xs:integer'>42</a> with 'xs:integer' being a valid QName and 42
being an integer in PSVI.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 11 May 2012 16:44:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:38 UTC