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

Re: Use of data() function

Subject: Re: Use of data() function
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Tue, 4 Mar 2008 22:18:09 +0100
Re:  Use of data() function
sure but it also makes sense to say child::sub

I don't think most doc-heads would accept as valid the idea that a
mixed content element (especially if the element has the mixed content
in it) is of type string.

Cheers,
Bryan Rasmussen

On Tue, Mar 4, 2008 at 5:54 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > >
>  > >  <person><first>Michael</first><last>Kay</last></person>
>  >
>  >
>
> > Out of interest, what is the reasoning behind allowing a
>  > mixed content element's typed-value to be its string value,
>  > but making it an error for element-only content?
>  >
>
>  data-heads vs doc-heads.
>
>  The data people felt that saying person='Kay' should be caught as a type
>  error.
>
>  But with mixed content, for example
>
>  <title>Water, or H<sub>2</sub>O</title>
>
>  it clearly makes sense to say contains(title, 'Water')
>
>
>  Michael Kay
>  http://www.saxonica.com/

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.