|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [OT]
> I am curious, what is the use of function, data() in XPath > 2.0; from stylesheet writer's perspective ? > > As defined in the spec, data() function retrieves the typed > value of the argument passed. The typed value (of say, a > node) to me is more useful within the processor and not very > much to the end user ... It's very rarely necessary to call data() explicitly, because atomization is nearly always done automatically when needed. But there are occasions for using it, especially with schema-aware processing. <xsl:if test="@married"> does not mean the same as <xsl:if test="data(@married)"> because the effective boolean value of a node is always true, regardless of its typed value. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

![RE: [OT]](/images/get_stylus.gif)




