xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] qname + uri


Subject: RE: [xsl] qname + uri
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 3 Jan 2001 10:13:24 -0000

> In a testing application I'm writing, I have a need to 
> 1.validate  a given ID value as being a valid qname.

The current version of Saxon has a static method
com.icl.saxon.om.Name#isQName() which should be very easy to call from XSLT.
> 
> 2. I also need to validate a uri + fragment as being valid.

I've come to the conclusion that isn't possible. A URI is only valid if it
uses a protocol name that has been registered, and the set of registered
protocols changes with time. Saxon allows any string to be used as a URI,
until it's dereferenced, at which point it must be a URL acceptable to Java.

Mike Kay 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor