[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: document('data.csv') fails; workaround needed
> Is there a clever way to import CSV data into the stylesheet? > The following fails of course: > > <xsl:variable name="csv" select="document('data.csv')"/> > Assuming a JAXP 1.1 environment: Write yourself a parser for the CSV data, make the parser implement the SAX XMLReader interface, and then write a URIResolver that when given the URI "data.csv", returns a SAXSource containing this parser and the required input file. Mike Kay 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
|