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

Re: My XPath mistakenly referenced an element that do

Subject: Re: My XPath mistakenly referenced an element that doesn't exist and I got no error message ... is this bad language design?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Oct 2021 14:28:01 -0000
Re:  My XPath mistakenly referenced an element that  do
On Thu, Oct 14, 2021 at 02:19:47PM -0000, Wendell Piez wapiez@xxxxxxxxxxxxxxx scripsit:
> Is this solution too demanding? (Not just defensive XSLT with extra tests in
> your XPath but an entire Schematron?) I always wonder, when we get to that
> point. What problem are we actually trying to solve?

We're trying to solve (at least) three:

- transform this to that
- ensure it's the expected this
- ensure it's the expected that

I think it's good practice to build these separately, rather than trying
to stuff the "expected this" part into the XSLT which is transforming
this to that.  (Which means failed "expected this" tests prevent the
transform from being attempted.)

I'd also suggest XQuery in preference to schematron for the "expected
this?" tests.  More power and available in "per collection" (and thus
"entire input content set") aware flavours.


-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

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.