Re: [docbook] v5 feature request.

2007-03-18 Thread Dave Pawson

Jirka Kosek wrote:

Dave Pawson wrote:

Could I request a (negative) addition to the schema please.

define name=db._any
  a:documentationAny element from almost any
namespace/a:documentation
  element

anyName
  except
nsName/
nsName ns=http://www.w3.org/1999/xhtml/
!-- DP Added for litprog--
nsName ns=http://nwalsh.com/xmlns/litprog/fragment/
  /except
/anyName


Unfortunately you hit one of the very few limits of RELAX NG. You can
not use general patterns inside anyName, so it is not possible to add
new excluded namespace simply by combining new namespace name with an
existing pattern for excluded namespaces. You have to redefine whole
pattern for db._any.


Yes, that was the request Jirka.




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook] v5 feature request.

2007-03-17 Thread Jirka Kosek
Dave Pawson wrote:
 Could I request a (negative) addition to the schema please.
 
 define name=db._any
   a:documentationAny element from almost any
 namespace/a:documentation
   element
 
 anyName
   except
 nsName/
 nsName ns=http://www.w3.org/1999/xhtml/
 !-- DP Added for litprog--
 nsName ns=http://nwalsh.com/xmlns/litprog/fragment/
   /except
 /anyName

Unfortunately you hit one of the very few limits of RELAX NG. You can
not use general patterns inside anyName, so it is not possible to add
new excluded namespace simply by combining new namespace name with an
existing pattern for excluded namespaces. You have to redefine whole
pattern for db._any.

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
--
 Want to speak at XML Prague 2007 = http://xmlprague.cz/cfp.html



signature.asc
Description: OpenPGP digital signature