/** * Allocate slot numbers to all the external component references in this component * * @param pack the containing package */ public void allocateAllBindingSlots(StylesheetPackage pack) { if (getBody() != null && getDeclaringComponent().getDeclaringPackage() == pack && packageData.getHostLanguage() == Configuration.XSLT) { allocateBindingSlotsRecursive(pack, this, getBody(), getDeclaringComponent().getComponentBindings()); } }
functionIndex.put(sName, decl); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { } else { sourceFunction.compileError("Function " + sName.getShortName() + " conflicts with a public function in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
/** * Allocate slot numbers to all the external component references in this component * * @param pack the containing package */ public void allocateAllBindingSlots(StylesheetPackage pack) { if (getBody() != null && getDeclaringComponent().getDeclaringPackage() == pack && packageData.getHostLanguage() == Configuration.XSLT) { allocateBindingSlotsRecursive(pack, this, getBody(), getDeclaringComponent().getComponentBindings()); } }
functionIndex.put(sName, decl); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { } else { sourceFunction.compileError("Function " + sName.getShortName() + " conflicts with a public function in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
final Component newC = Component.makeComponent(oldC.getActor(), newV, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC); trace(oldC.getActor().getSymbolicName() + " (HIDDEN, declared in " + oldC.getDeclaringPackage().getPackageName() + ") becomes HIDDEN"); final Component newC = Component.makeComponent(oldC.getActor(), Visibility.HIDDEN, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC);
HashMap<SymbolicName, Component> componentIndex = getStylesheetPackage().getComponentIndex(); Component existing = componentIndex.get(sName); if (existing != null && existing.getDeclaringPackage() != getStylesheetPackage()) { if (element instanceof XSLTemplate && !(element.getParent() instanceof XSLOverride)) { element.compileError("A template rule cannot be added to a mode declared in a used package " +
HashMap<SymbolicName, Component> componentIndex = getStylesheetPackage().getComponentIndex(); Component existing = componentIndex.get(sName); if (existing != null && existing.getDeclaringPackage() != getStylesheetPackage()) { if (element instanceof XSLTemplate && !(element.getParent() instanceof XSLOverride)) { element.compileError("A template rule cannot be added to a mode declared in a used package " +
final Component newC = Component.makeComponent(oldC.getActor(), newV, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC); trace(oldC.getActor().getSymbolicName() + " (HIDDEN, declared in " + oldC.getDeclaringPackage().getPackageName() + ") becomes HIDDEN"); final Component newC = Component.makeComponent(oldC.getActor(), Visibility.HIDDEN, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC);
public void checkCompatibility(Component component) { SequenceType st1 = getSourceBinding().getDeclaredType(); if (st1 == null) { st1 = SequenceType.ANY_SEQUENCE; } GlobalVariable other = (GlobalVariable) component.getActor(); TypeHierarchy th = component.getDeclaringPackage().getConfiguration().getTypeHierarchy(); int relation = th.sequenceTypeRelationship(st1, other.getRequiredType()); if (relation != TypeHierarchy.SAME_TYPE) { compileError( "The declared type of the overriding variable $" + getVariableQName().getDisplayName() + " is different from that of the overridden variable", "XTSE3070"); } }
if (other != null && other.getDeclaringPackage() != top.getStylesheetPackage()) { compileError("Mode " + name.getDisplayName() + " conflicts with a public named mode in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
public void checkCompatibility(Component component) { SequenceType st1 = getSourceBinding().getDeclaredType(); if (st1 == null) { st1 = SequenceType.ANY_SEQUENCE; } GlobalVariable other = (GlobalVariable) component.getActor(); TypeHierarchy th = component.getDeclaringPackage().getConfiguration().getTypeHierarchy(); int relation = th.sequenceTypeRelationship(st1, other.getRequiredType()); if (relation != TypeHierarchy.SAME_TYPE) { compileError( "The declared type of the overriding variable $" + getVariableQName().getDisplayName() + " is different from that of the overridden variable", "XTSE3070"); } }
if (other != null && other.getDeclaringPackage() != top.getStylesheetPackage()) { compileError("Mode " + name.getDisplayName() + " conflicts with a public named mode in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
templateIndex.put(sName.getComponentName(), decl); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { } else { sourceTemplate.compileError("Named template " + sName.getComponentName().getDisplayName() + " conflicts with a public named template in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
varDecl.getActor().getDeclaringComponent()); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { String kind = varDecl instanceof XSLGlobalParam ? "parameter" : "variable"; varDecl.compileError("Global " + kind + " $" + sName.getComponentName().getDisplayName() + " conflicts with a public variable/parameter in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
templateIndex.put(sName.getComponentName(), decl); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { } else { sourceTemplate.compileError("Named template " + sName.getComponentName().getDisplayName() + " conflicts with a public named template in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
varDecl.getActor().getDeclaringComponent()); } else { if (other.getDeclaringPackage() == getStylesheetPackage()) { String kind = varDecl instanceof XSLGlobalParam ? "parameter" : "variable"; varDecl.compileError("Global " + kind + " $" + sName.getComponentName().getDisplayName() + " conflicts with a public variable/parameter in package " + other.getDeclaringPackage().getPackageName(), "XTSE3050");
XPathContextMajor c2 = context.newCleanContext(); c2.setOrigin(this); if (target == null || target.getDeclaringPackage().isRootPackage()) { ManualIterator<?> mi = new ManualIterator<>(context.getController().getGlobalContextItem());
XPathContextMajor c2 = context.newCleanContext(); c2.setOrigin(this); if (target == null || target.getDeclaringPackage().isRootPackage()) { ManualIterator<?> mi = new ManualIterator<>(context.getController().getGlobalContextItem());