[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT 3.1 that keeps both Saxon EE and HE happy and
On Thu, 2024-09-26 at 04:21 +0000, Robert Stuart bobstuart@xxxxxxx wrote: > > tokenize(./@someAttribute) works great in HE but bombs in EE with A > sequence of more than one item is not allowed as the first argument > of fn:tokenize() Right. This is because the schema gives @someAttribute a type annotation saying it's a list, so it becomes a sequence. you could use e.g. if (count(@someAttribute) gt 1) then @someAttribute else tokenize(@someAttribute) or have a template that only matches the attribute if it has a type annotation, and one tha tmatches if it doesn't and tokenizes it, and use apply-templates. <xsl:template match=".[. instance of my:listType]">.... Or that's what i think late at night anyway :-) best liam -- Liam Quin,B https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org
|
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
|