[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: fn:document-uri in Saxon and XMLSpy

Subject: RE: fn:document-uri in Saxon and XMLSpy
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 6 Jan 2006 16:42:20 -0000
fn document uri
A valid URI can never contain a backslash. It looks as if XML Spy is
returning the Windows filename.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Jesper Tverskov [mailto:jesper@xxxxxxxxxxx] 
> Sent: 06 January 2006 16:32
> To: Xsl-List@Lists. Mulberrytech. Com
> Subject:  fn:document-uri in Saxon and XMLSpy
> 
> Hi 
> 
> In XPath 2.O fn:document-uri returns full path and filename 
> of the input XML
> document or context node. In order just to get the filename 
> returned I use
> this set of functions in XSLT processor SAXON 8B in oXygen:
> 
> subsequence(reverse(tokenize(document-uri(.), "/")), 1, 1)
> 
> 
> But I need to use this set of functions in XMLSpy's 2006 XSLT 
> processor:
> 
> subsequence(reverse(tokenize(document-uri(.), "\\")), 1, 1)
> 
> 
> Who is doing it right and why?
> 
> Wouldn't it be better for both processors to make both "/" 
> and "\\" work?
> 
> Is there a better set of functions to do the samt thing?
>  
> 
> Best regards,
> Jesper Tverskov

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.