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

Re: Concerned about the increasing reliance on XPath

  • From: Philip Fearon <pgfearo@googlemail.com>
  • To: stephengreenubl@gmail.com
  • Date: Tue, 10 May 2011 05:30:38 +0100

Re:  Concerned about the increasing reliance on XPath
On Mon, May 9, 2011 at 7:45 PM, Stephen D Green
<stephengreenubl@gmail.com> wrote:
> On 9 May 2011 18:52, Philip Fearon <pgfearo@googlemail.com> wrote:
>> Yes, it seems each vendor has adopted their own 'harness' for setting
>> the XPath evaluation context so that saved XPaths are portable.
>
> Yes, but this highlights my issue; they are portable *within instances of
> that implementation and not (as much as we'd like) between implementations*
>
True. To mitigate the portability issue, SketchPath can use
user-supplied XSLT to transform the XPath files to a suitable format,
or directly to code like c#, for example.
>
>>
>> SketchPath's approach is to create grouped sets of XPath expressions
>> that are saved in simple XML files so they can be reused easily as a
>> resource in other applications.
>> (These same XML files are also used to set parameters and processor
>> settings for an XSLT test tool).
>>
>> As well as the XPath itself, additional metadata is stored for each expression:
>> 1. A name for the expression - other expressions can use this name to
>> reuse the expression as a variable
>> 2. An XPath identifying the context node for evaluation
>> 3. A descriptive comment
>
> Yes, my interest has been in Tamelizer (GoogleCode project) and this
> does the same
>
I hadn't heard of this, I will look it up.
>>
>
>
> Maybe there would be more portability if your XML language could
> also allow every group to inlude the bindings though, like this:
>
>             <cwb:group name="alpha">
>                <cwb:expression name="header-1">
>                    <cwb:namespace-declarations>
>                        <cwb:expression name="spec">
>                            <cwb:main>'http://expath.org/ns/xmlspec'</cwb:main>
>                            <cwb:comment>Created: 09/05/2011
> 18:18:45</cwb:comment>
>                        </cwb:expression>
>                    </cwb:namespace-declarations>
>                    <cwb:main>/spec/header</cwb:main>
>                    <cwb:comment>Created: 09/05/2011 18:16:13</cwb:comment>
>                </cwb:expression>
>            </cwb:group>
>
I will look into this, though experience with XML tells us that using
local namespace declarations can cause maintenance issues later. As
there's a special 'global' XPath group, there could be a set of global
namespaces and potentially a set for each group. Currently, different
files are used for different namespace sets.


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