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

RE: Re: Is an XPath processor responsible for catching

Subject: RE: Re: Is an XPath processor responsible for catching misspelled tag names when there is an associated Schema?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Fri, 22 Feb 2008 07:13:43 -0500
RE:  Re: Is an XPath processor responsible for catching
I am disappointed that detection of mispelled tag names cannot be done
entirely within XPath expression, and that features from the host
language must be used.

For example, if the host language is XSLT then I must first create a
variable:

   <xsl:variable name="bk" select="/Book" as="schema-element(Book)" />

And then use the variable in the XPath:

   count($bk/Authr)

The cosequence is that the XPath is not portable: for each host
language I must redesign the XPath using capabilities from the host
language.

It would be nice if the expression "schema-element(Book)" could be
incorporated into the XPath, e.g.

   count(/(Book as schema-element(Book))/Authr)

/Roger

Current Thread

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