Subject: [xsl] how to test for presence of a file with XSLT? From: "Jaques, Yves (FIDI)" <Yves.Jaques@xxxxxxx> Date: Mon, 04 Aug 2003 09:53:46 +0200 |
I use a file separate from the source XML file to control the naming of xml elements on output. This is mostly for multi-lingual implementation. However, I have some users that want different labels from everybody else (ggrhhh!). What I want to do is change the XSL so that it tries to load a file-specific labels file, and if it doesn't find it, loads the default labels file. I thought I could be tricky by attempting a load with the document() function and then testing for emptiness, but the parser didn't like that approach at all. We use XALAN-J as our parser. Do I need an extension function to do this? thanks, Yves Jaques Information Officer FIDI FIDI - room F-320 United Nations Food and Agriculture Organisation viale delle Terme di Caracalla - 00100 Roma - ITALIA _________________________________________ yves.jaques@xxxxxxx tel. : (39) 0657056058 fax.: (39) 0657052476 Please visit our web site at: HTTP://WWW.FAO.ORG/FI XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ANN: Scriptura 1.2.2: XSL out, Klaas_Bals | Thread | RE: [xsl] how to test for presence , David . Pawson |
RE: [xsl] jd.xslt bug (at least une, Michael Kay | Date | RE: [xsl] How to speed up parsing ?, David . Pawson |
Month |