[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: ignore namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 13 Mar 2007 23:35:04 GMT
in xslt1  or a basic xslt2 processor, the attribute value is a string
and not subject to namespace processing, so you can't ask for the local
name, but you can ask for the substring after the :
substring-after(@type,':')
If you use a schema-ware XSLT2 processor and schema validate the input,
so that @type has type QName then you could use local-name(@type/data())

David

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member