xsl-list
[Top] [All Lists]

Re: [xsl] 3 XSLT2 quickies

2006-03-16 14:23:35

Since you say it's an element declared  as IDREFS rather than an an
element you must be talking about schema typing and xs:IDREFS.
If you are using a non-schema aware xslt engine (such as the free saxon)
then the schema will not be read so the IDREFS declaratin is not seen
and the element content is treated as untyped, just as any other content

If you are using a schema-aware product (such as saxon-sa) then the
input tree will have this as a typed node and you can access the terms
as a sequence as you describe. (In the untyped case you can always use
the tokenize() function to access the individual items as well.

because text() doesn't atomize, but I am open for any objections.
yes it's the element node that has the type annotation so if you select
the text node child then it's just text.

I leave your other qns to someone who has a schema aware product to test
their answers on:-)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>