|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: using node-set() extension function across vendors
The official answer is using function-available(). But you could try a solution that uses entities: replace the xx:node-set(expr) by &xx-node-set;(expr), and use EntityResolvers, catalogs, etc, to expand the xx-node-set entity reference differently on different occasions. Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Abie Hamaoui > Sent: 08 October 2003 17:57 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: using node-set() extension function across vendors > > > hello again all, > I have a stylesheet that I want to be able to run using saxon > (ver.6.5/xsl-ver.1.1) and msxsl (ver.3/xsl-ver.1.0). I want > to be able to > create variables to use as regular trees. > > both vendors have a node-set() extension function, but the > problem is that > they use dif't namespaces: > msxsl:node-set() and saxon:node-set(). > > is there a way to define a namespace prefix <<extra>> that > will take on > dif't namespace uri's depending on a test, eg > "urn:schemas-microsoft-com:xslt" or "http://icl.com/saxon" > depending on a > check of system-property()? > > (I think I could just test for > function-available(msxsl:node-set) each time, > or the like, but it seems more elegant to make this > determination just > once.) > > thanks in advance. > abie > > _________________________________________________________________ > Instant message during games with MSN Messenger 6.0. Download > it now FREE! > http://msnmessenger-download.com > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








