Project

Profile

Help

Revision 40da1a23

Added by Michael Kay about 12 years ago

Fix bug 2877114 In XSLT, type="xxx" overwrites the element name

View differences:

latest9.1/bj/net/sf/saxon/style/StyleElement.java
39 39
 * an XSL error is found.
40 40
 */
41 41

  
42
public abstract class StyleElement extends ElementImpl
42
public abstract class gStyleElement extends ElementImpl
43 43
        implements Locator, Container, InstructionInfo {
44 44

  
45 45
    protected short[] extensionNamespaces = null;		// a list of URI codes
......
916 916
            if ("".equals(parts[0])) {
917 917
                // Name is unprefixed: use the default-xpath-namespace
918 918
                uri = getDefaultXPathNamespace();
919
                nameCode = getNamePool().allocate(parts[0], uri, lname);
920 919
            } else {
921 920
                uri = getURIForPrefix(parts[0], false);
922 921
                if (uri == null) {
latest9.2/hej/net/sf/saxon/style/StyleElement.java
944 944
            if ("".equals(parts[0])) {
945 945
                // Name is unprefixed: use the default-xpath-namespace
946 946
                uri = getDefaultXPathNamespace();
947
                nameCode = getNamePool().allocate(parts[0], uri, lname);
948 947
            } else {
949 948
                uri = getURIForPrefix(parts[0], false);
950 949
                if (uri == null) {

Also available in: Unified diff