W3C home > Mailing lists > Public > xproc-dev@w3.org > January 2009

Keep running into java.lang.IllegalStateException: baseURI exceptions...

From: Philip Fennell <Philip.Fennell@bbc.co.uk>
Date: Fri, 16 Jan 2009 15:39:09 -0000
Message-ID: <FBFAE0E0B37B4148AF77509764D4BC2007B1E7B7@bbcxues11.national.core.bbc.co.uk>
To: <xproc-dev@w3.org>

I've been experimenting with Calabash/XProc and in this simple example I
have a source XML file:

<?xml version="1.0" encoding="UTF-8"?>
<c:directory xmlns:c="http://www.w3.org/ns/xproc-step" name="7_"
 
xml:base="D:\Projects\AssetStore\data\xml\Infax-subset\programmes\00\CF0
7\7_/">
   <c:file name="data.xml"/>
   <c:directory name="transmissions"/>
</c:directory>

and a simple pipeline:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step 
		xmlns:c="http://www.w3.org/ns/xproc-step"
		xmlns:p="http://www.w3.org/ns/xproc"
		xmlns:xs="http://www.w3.org/2001/XMLSchema"
		name="Delete_File">
	
	<p:input port="source">
		<p:document href="../results/dir_struct.xml"/>
	</p:input>
	
	<p:delete match="//c:file"/>
	
	<p:store href="../results/replaced.xml" indent="true"/>
</p:declare-step>

and when I run it using Calabash 0.9.3, on Windows XP SP2 + Java
1.6.0_06 + SaxonB 9.1.0.5, I get the following result:

D:\Projects\AssetStore\pipelines>java -cp java -classpath
D:\lib\Calabash\lib\ca
labash.jar;D:\lib\Saxon\saxon9.jar;D:\lib\Saxon\saxon9-s9api.jar;D:\lib\
Saxon\sa
xon9-xpath.jar -Dcom.xmlcalabash.phonehome=false
com.xmlcalabash.drivers.Main re
place.xpl

Error  : Pipeline failed: com.xmlcalabash.core.XProcException:
java.lang.Illegal
StateException: baseURI
Error  : Underlying exception: java.lang.IllegalStateException: baseURI

I get the problem if I try other steps like p:replace.

Is it me, or is it Calabash?

I've done some search but find no mention of it in recent e-mails or the
web.


Regards

Philip Fennell

>XML Developer (The Forge)
>
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP
>BC4 C4, Broadcast Centre
>
>T:	0208 0085318

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
Received on Friday, 16 January 2009 15:39:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 January 2009 15:39:45 GMT