On 13/09/05, Bob Foster <[EMAIL PROTECTED]> wrote:
> I haven't read this whole thread, but why don't you just use a pattern?
1. Eric showed the weakness of that for development.
2. I wanted to try the library extension.... which seems not to be working.
I have
public class px extends SimpleDatatypeLibrary {
private static final String DATATYPE_LIBRARY
= "http://www.rnib.org/relaxng/datatype/px";
// http://www.rnib.org/relaxng/datatype/px
private static final String TYPE = "px";
based on James BalancedString.java
<define name="Units">
<element name="unit"
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.rnib.org/relaxng/datatype/px">
<data type="px"/>
</element>
</define>
and an xml example using that.
running jing with my units.jar (holding
$ jar -tf units.jar
META-INF/
META-INF/MANIFEST.MF
org/rnib/datatype/px.class
org/rnib/datatype/SimpleDatatypeLibrary.class
)
and jing reports:
C:\myjava\relax\units.rng:15:22: error: datatype library "http://www.rnib.org/r
laxng/datatype/px" not recognized
I.e. I think I'm getting a namespace problem... except I don't know what
the match should be.
I'm assuming, from James example it should be
1. <element name="unit"
datatypeLibrary="http://www.rnib.org/relaxng/datatype/px">
and
2. private static final String DATATYPE_LIBRARY
= "http://www.rnib.org/relaxng/datatype/px";
which seems to make sense.
Any suggestions please?
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/2U_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rng-users/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/