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

Re: Using Saxon 9 as a Schematron 1.5 back end

  • From: "Anthony B. Coates (XML-Dev)" <abcoatesecure-xmldev@y...>
  • To: xml-dev@l...
  • Date: Mon, 21 Jan 2008 17:38:35 -0000

Re:  Using Saxon 9 as a Schematron 1.5 back end
On Mon, 21 Jan 2008 15:14:58 -0000, David Carlisle <davidc@n...>  
wrote:

> For this usage, the (ISO) schematron skeleton files include templates
> that output xpaths (not using any prefixes) to the context of the
> message. (It also has templates that make xpaths with prefixes, suitable
> for human readable error messages, but in many XPath API, it's just
> simpler to report something as
> /*[10]/*[5]
> rather than
> /a:b[3]/c:d[2]
> and then worry how to bind the namespace prefixes.

That's a useful general approach when you don't want to know anything  
about the content.  In truth, when I'm generating XPaths for particular  
projects, I not only want names, but I make use of any unique IDs or  
human-readable names in the document, as it can make things easier for  
humans (i.e. sometimes a human will look at the XPath and realise where  
the problem is, without having to paste the XPath into an editor or some  
other tool).  There is probably some semi-generic way of doing this,  
although I haven't tried to do anything that re-usable so far (re-writing  
the XPath generation XSLT on a case-by-case basis isn't such a big task,  
in practice).

Cheers, Tony.
-- 
Anthony B. Coates
Senior Partner
Miley Watts LLP
Experts In Data
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Data standards participant: genericode, ISO 20022 (ISO 15022 XML),  
UN/CEFACT, MDDL, FpML, UBL.
http://www.mileywatts.com/


[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.