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

Why does the doc() function reject non-ASCII character

Subject: Why does the doc() function reject non-ASCII characters in the filename?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Fri, 5 Oct 2012 15:22:02 +0000
 Why does the doc() function reject non-ASCII character
Hi Folks,

I was given a large number of XML files to convert to HTML using an XSLT
program I have written.

I collected all the filenames into a file.

In my XSLT program I have a loop that:

    - reads in a filename
    - uses the filename in the doc() function to read in the file
    - process the file

The problem is that some filenames contain odd characters. Here is an example
of a filename:

    PalaisAfacettes_jpg.xml

Notice the two dots over the 'y' character (diaeresis).

When my XSLT program gets to that filename it throws an error:

    Failed to read input file ...

Why?

Why do I get that error?

Why does the doc() function care if the filename contains a diaeresis?

Second question: do you have suggestions on how to locate in my file (that
contains all the filenames) the offending filenames?

/Roger

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.