[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: i18n and l10n question
> Disregard that: I just had to change version="1.0" to version="2.0" > to solve this. Now I get the following error: > > ERROR: 'Namespace prefix 'my' is undeclared.' > FATAL ERROR: 'Could not compile stylesheet' As well as changing the version attribute, you'll need to switch to an XSLT 2.0 processor (e.g. Saxon). Otherwise this will be your next error message after you've fixed the namespace problem. > > How do I solve this? I'm not that familiar with the whole > namespace- thing. > It's hard to get very far with XSLT without a basic understanding of namespaces. You need to do some reading. In XSLT, the names of user-defined functions are always in a namespace (e.g. my:sum) to distinguish them from system-defined functions. You can use any namespace you like, but you must declare it, e.g. xmlns:my="http://me.com/xslt-functions". Of course if you're planning to write a library of reusable functions then you should give the choice of namespace some thought. Michael Kay http://www.saxonica.com/
|
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
|