Project

Profile

Help

Revision fa31b92b

Added by Michael Kay over 14 years ago

Fix bug 1692135 - anyURI with embedded whitespace

View differences:

latest8.9/bj/net/sf/saxon/value/AnyURIValue.java
37 37
    */
38 38

  
39 39
    public AnyURIValue(CharSequence value) {
40
        this.value = (value==null ? "" : Whitespace.trimWhitespace(value).toString());
40
        this.value = (value==null ? "" : Whitespace.collapseWhitespace(value).toString());
41 41
        this.typeLabel = BuiltInAtomicType.ANY_URI;
42 42
    }
43 43

  
......
50 50
     */
51 51

  
52 52
     public AnyURIValue(CharSequence value, AtomicType type) {
53
         this.value = (value==null ? "" : Whitespace.trimWhitespace(value).toString());
53
         this.value = (value==null ? "" : Whitespace.collapseWhitespace(value).toString());
54 54
         this.typeLabel = type;
55 55
     }
56 56

  

Also available in: Unified diff