|
next
|
Subject: Re: transform XML Schema value or lexical space? Author: (Deleted User) Date: 31 Oct 2001 10:30 AM
|
At 06:46 AM 10/31/2001 -0500, you wrote:
>From: "Hans-Peter Küchler"
>
>Hi,
>I'm using XML Schema for defining element types. Should a XSL
>transformation use the lexical space (as stylus do) or the value space of=
>a XML document for the transformation? Lexical and value space are defined=
>in "XML Schema Part 2: Datatypes". I think it should use the value space
>for transformation not the lexical space!
Stylus simply implements the XSLT 1.0 specs, that don't distinguish between=
value and lexical spaces; being based upon XML 1.0, XSLT has a limited
number of supported datatypes (string, boolean, number, node-set).
So, if you need to test if "100" and "100.0" are two entries in the lexical=
space for the same entry in the value space, you can do it by comparing
number("100") with number("100.0"); but if you want to compare/manipulate
user-defined datatypes, you need to write your own extension functions.
Summarizing, what you need is going to be addressed by XSLT 2.0 (see
http://www.w3.org/TR/xslt20req paragraph 2.3), that is currently in the
Working Draft status.
Alberto
|
|
|
|