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

Re: Schema-awareness and built-in types

Subject: Re: Schema-awareness and built-in types
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Jun 2014 20:01:17 -0000
Re:  Schema-awareness and built-in types
Max,

What happens when you do this?

<xsl:element name="a" type="xs:integer">
  <xsl:sequence select="5"/>
</xsl:element>

or even select="xs:integer(5)" ...?

I suppose I could always try. :->

Cheers, Wendell

On Wed, Jun 11, 2014 at 11:45 AM, Max Toro maxtoroq@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> The following doesn't work in an XSLT processor with basic conformance:
>
> <xsl:element name="a" type="xs:integer">5</xsl:element>
>
> even though you can create variables using the built-in types:
>
> <xsl:variable name="a" select="5" as="xs:integer"/>
>
> or use the constructor functions:
>
> <xsl:variable name="a" select="xs:integer('5')"/>
>
> What's the reason for this restriction? Why can't I use built-in types
> to annotate new nodes?
> --
> Max Toro
> 



-- 
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^

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.