Re: [xml-dev] XSLT Stylesheet test for special character
From: Jack Bush <netbeansfan@yahoo.com.au>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 22 Jan 2009 04:56:26 -0800 (PST)
Hi Bjoern,
Neither did string(.) = 'Firstname:' or text() = 'Firstname:' work hence it branched to the otherwise option instead.
Thanks for trying anyway,
Jack
From: Bjoern Hoehrmann <derhoermi@gmx.net> To: Jack Bush <netbeansfan@yahoo.com.au> Cc: xml-dev@lists.xml.org Sent: Wednesday, 21 January, 2009 1:31:09 PM Subject: Re: [xml-dev] XSLT Stylesheet test for special character
>The error message has something like: Invalid QName on line 6 of stylesheet......
Your test looks for a <Firstname:> child element, which cannot exist. You have to compare the string value of the strong element to the string 'Firstname:', e.g.
using
XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting.