/** * Get the version of the package as a structured object that meets the requirements of * <a href="http://www.w3.org/TR/xslt-30/#package-versions">http://www.w3.org/TR/xslt-30/#package-versions</a> * * @return the package version of the stylesheet */ public PackageVersion getPackageVersion() { return stylesheetPackage.getPackageVersion(); }
/** * Get the version of the package as a structured object that meets the requirements of * <a href="http://www.w3.org/TR/xslt-30/#package-versions">http://www.w3.org/TR/xslt-30/#package-versions</a> * * @return the package version of the stylesheet */ public PackageVersion getPackageVersion() { return stylesheetPackage.getPackageVersion(); }
/** * Get the version number of the package (the value of the attribute <code>xsl:package/@package-version</code>. * Note that this may have had trailing zeroes truncated. * * @return the package version number(s)+suffix? */ public String getVersion() { return stylesheetPackage.getPackageVersion().toString(); }
/** * Get the version number of the package (the value of the attribute <code>xsl:package/@package-version</code>. * Note that this may have had trailing zeroes truncated. * * @return the package version number(s)+suffix? */ public String getVersion() { return stylesheetPackage.getPackageVersion().toString(); }
/** * Add a compiled and loaded package to this package library. This will replace * any existing package with the same name and version. * * @param packageIn The stylesheet package to be added */ public synchronized void addPackage(StylesheetPackage packageIn) { String name = packageIn.getPackageName(); PackageVersion version = packageIn.getPackageVersion(); VersionedPackageName vp = new VersionedPackageName(name, version); PackageDetails details = new PackageDetails(); details.nameAndVersion = vp; details.loadedPackage = packageIn; packages.put(vp, details); addPackage(details); }
/** * Add a compiled and loaded package to this package library. This will replace * any existing package with the same name and version. * * @param packageIn The stylesheet package to be added */ public void addPackage(StylesheetPackage packageIn) { String name = packageIn.getPackageName(); PackageVersion version = packageIn.getPackageVersion(); VersionedPackageName vp = new VersionedPackageName(name, version); PackageDetails details = new PackageDetails(); details.nameAndVersion = vp; details.loadedPackage = packageIn; packages.put(vp, details); addPackage(details); }
private void checkNameAndVersion(StylesheetPackage pack, PackageDetails details) throws XPathException { String storedName = pack.getPackageName(); if (details.baseName != null) { if (!details.baseName.equals(storedName)) { throw new XPathException("Base name of package (" + details.baseName + ") does not match the value in the XSLT source (" + storedName + ")"); } } else { if (!details.nameAndVersion.packageName.equals(storedName)) { throw new XPathException("Registered name of package (" + details.nameAndVersion.packageName + ") does not match the value in the XSLT source (" + storedName + ")"); } } PackageVersion actualVersion = pack.getPackageVersion(); if (!actualVersion.equals(details.nameAndVersion.packageVersion)) { throw new XPathException("Registered version number of package (" + details.nameAndVersion.packageVersion + ") does not match the value in the XSLT source (" + actualVersion + ")"); } }
private void checkNameAndVersion(StylesheetPackage pack, PackageDetails details) throws XPathException { String storedName = pack.getPackageName(); if (details.baseName != null) { if (!details.baseName.equals(storedName)) { throw new XPathException("Base name of package (" + details.baseName + ") does not match the value in the XSLT source (" + storedName + ")"); } } else { if (!details.nameAndVersion.packageName.equals(storedName)) { throw new XPathException("Registered name of package (" + details.nameAndVersion.packageName + ") does not match the value in the XSLT source (" + storedName + ")"); } } PackageVersion actualVersion = pack.getPackageVersion(); if (!actualVersion.equals(details.nameAndVersion.packageVersion)) { throw new XPathException("Registered version number of package (" + details.nameAndVersion.packageVersion + ") does not match the value in the XSLT source (" + actualVersion + ")"); } }
String name = ((StylesheetPackage) packageData).getPackageName(); if (name != null) { documentKey = name + " " + ((StylesheetPackage) packageData).getPackageVersion() + " " + documentKey;
String name = ((StylesheetPackage) packageData).getPackageName(); if (name != null) { documentKey = name + " " + ((StylesheetPackage) packageData).getPackageVersion() + " " + documentKey;
StylesheetPackage used = details.loadedPackage; VersionedPackageName existing = new VersionedPackageName(used.getPackageName(), used.getPackageVersion()); if (usingPackages.contains(existing)) {
StylesheetPackage used = details.loadedPackage; VersionedPackageName existing = new VersionedPackageName(used.getPackageName(), used.getPackageVersion()); if (usingPackages.contains(existing)) {
if (whitespaceRule != NoElementsSpaceStrippingRule.getInstance()) { collectionKey = ((StylesheetPackage) packageData).getPackageName() + ((StylesheetPackage) packageData).getPackageVersion() + " " + absoluteURI;
if (whitespaceRule != NoElementsSpaceStrippingRule.getInstance()) { collectionKey = ((StylesheetPackage) packageData).getPackageName() + ((StylesheetPackage) packageData).getPackageVersion() + " " + absoluteURI;