Issue #2789 Implement Version transformations
Change-Id: I00a4fd18c993bf4240ec620d17ab377e8e62cc5c Former-commit-id: 50279c71ad037d462f195c5f785165d2eee26f87
This commit is contained in:
parent
3018ff1f5f
commit
5064730dfa
36 changed files with 2840 additions and 62 deletions
|
@ -67,7 +67,7 @@
|
|||
<parameter name="obVis_cat1" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="obVis_cat2" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="obVis_cat3" numDims="1" type="INT" unit="%"/>
|
||||
<parammeeter name="QPF24hr_cat2" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="QPF24hr_cat2" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="QPF24hr_cat3" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="QPF24hr_cat1" numDims="1" type="INT" unit="%"/>
|
||||
<parameter name="QPF24hr_cat7" numDims="1" type="INT" unit="%"/>
|
||||
|
|
|
@ -41,6 +41,7 @@ import com.raytheon.uf.common.serialization.SerializationException;
|
|||
* Nov 12, 2013 2506 bgonzale Added is recurring subscription method.
|
||||
* Nov 18, 2013 1736 dhladky Data Set helper method.
|
||||
* Dec 08, 2013 2584 dhladky Registry versions for objects.
|
||||
* Mar 02, 2014 2789 dhladky XSLT versions done in the encoder.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -105,28 +106,7 @@ public final class DataDeliveryRegistryObjectTypes {
|
|||
}
|
||||
|
||||
/**
|
||||
* Convert the object if necessary
|
||||
*
|
||||
* @param content
|
||||
* @param encoder
|
||||
* @return
|
||||
*/
|
||||
public static Object convertObject(Object content,
|
||||
IRegistryEncoder encoder) {
|
||||
|
||||
/**
|
||||
* TODO In next step attempt to
|
||||
* do a conversion
|
||||
*/
|
||||
throw new IllegalArgumentException(
|
||||
"Can not convert Data Delivery Registry Objects in this release!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the object from the encoder, checking to see if conversion is
|
||||
* necessary or not.
|
||||
* Gets the object from the encoder.
|
||||
*
|
||||
* @param registryObjectType
|
||||
* @param encoder
|
||||
|
@ -136,14 +116,7 @@ public final class DataDeliveryRegistryObjectTypes {
|
|||
public static Object getObject(RegistryObjectType registryObjectType,
|
||||
IRegistryEncoder encoder) throws SerializationException {
|
||||
|
||||
Object object = encoder.decodeObject(registryObjectType);
|
||||
|
||||
//Returned content. Object is of different version!
|
||||
if (object instanceof String) {
|
||||
object = convertObject(object, encoder);
|
||||
}
|
||||
|
||||
return object;
|
||||
return encoder.decodeObject(registryObjectType);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import com.raytheon.uf.common.registry.annotations.RegistryObject;
|
||||
import com.raytheon.uf.common.registry.annotations.RegistryObjectDescription;
|
||||
import com.raytheon.uf.common.registry.annotations.RegistryObjectName;
|
||||
import com.raytheon.uf.common.registry.annotations.RegistryObjectVersion;
|
||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||
|
||||
|
@ -23,6 +24,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|||
* May 14, 2012 #455 jspinks Initial creation
|
||||
* 8/3/2012 724 bphillip Added Registry annotations
|
||||
* Nov 19, 2012 1166 djohnson Clean up JAXB representation of registry objects.
|
||||
* Mar 09, 2013 2789 dhladky Versions
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -35,6 +37,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|||
@XmlRootElement
|
||||
@XmlAccessorType(XmlAccessType.NONE)
|
||||
@RegistryObject({ "levelId", "levelValue" })
|
||||
@RegistryObjectVersion(value = 1.0f)
|
||||
public class ParameterLevel {
|
||||
|
||||
@RegistryObjectName
|
||||
|
|
|
@ -24,6 +24,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
|||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import com.raytheon.uf.common.registry.annotations.RegistryObjectVersion;
|
||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||
|
||||
|
@ -37,6 +38,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Jun 07, 2013 2038 djohnson Initial creation
|
||||
* Mar 26, 2014 2789 dhladky Versioned.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -46,6 +48,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|||
@XmlRootElement
|
||||
@XmlAccessorType(XmlAccessType.NONE)
|
||||
@DynamicSerialize
|
||||
@RegistryObjectVersion(value = 1.0f)
|
||||
public class ProviderType {
|
||||
|
||||
@XmlAttribute
|
||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.raytheon.uf.common.registry.ebxml
|
||||
Bundle-SymbolicName: com.raytheon.uf.common.registry.ebxml
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Version: 1.14.0.qualifier
|
||||
Bundle-Vendor: RAYTHEON
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
Export-Package: com.raytheon.uf.common.registry,
|
||||
|
@ -11,6 +11,7 @@ Export-Package: com.raytheon.uf.common.registry,
|
|||
com.raytheon.uf.common.registry.ebxml,
|
||||
com.raytheon.uf.common.registry.ebxml.encoder,
|
||||
com.raytheon.uf.common.registry.ebxml.slots,
|
||||
com.raytheon.uf.common.registry.ebxml.version,
|
||||
com.raytheon.uf.common.registry.handler,
|
||||
com.raytheon.uf.common.registry.services,
|
||||
com.raytheon.uf.common.registry.services.rest,
|
||||
|
@ -31,5 +32,6 @@ Require-Bundle: org.apache.commons.codec;bundle-version="1.4.0",
|
|||
org.apache.commons.lang;bundle-version="2.3.0",
|
||||
org.apache.commons.cxf;bundle-version="1.0.0",
|
||||
com.raytheon.uf.common.localization;bundle-version="1.12.1174"
|
||||
Import-Package: com.sun.xml.bind.marshaller,
|
||||
Import-Package: com.raytheon.uf.common.registry.ebxml.version,
|
||||
com.sun.xml.bind.marshaller,
|
||||
com.vividsolutions.jts.geom
|
||||
|
|
|
@ -24,6 +24,7 @@ import static com.raytheon.uf.common.registry.ebxml.encoder.RegistryEncoders.Typ
|
|||
import javax.xml.bind.JAXBException;
|
||||
|
||||
import com.raytheon.uf.common.registry.annotations.RegistryObjectVersion;
|
||||
import com.raytheon.uf.common.registry.ebxml.version.VersionTransformer;
|
||||
import com.raytheon.uf.common.registry.schemas.ebxml.util.EbxmlJaxbManager;
|
||||
import com.raytheon.uf.common.serialization.SerializationException;
|
||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||
|
@ -46,6 +47,7 @@ import com.raytheon.uf.common.util.ReflectionUtil;
|
|||
* Oct 31, 2013 2361 njensen Use specific JAXBManager instead of SerializationUtil
|
||||
* Nov 14, 2013 2552 bkowal EbxmlJaxbManager is now accessed via getInstance
|
||||
* Dec 08, 2013 2584 dhladky Versions for JAXB objects, Only use the JAXb encoder now.
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -85,9 +87,21 @@ class JaxbEncoder extends StringBasedEncoder {
|
|||
}
|
||||
} else {
|
||||
statusHandler.handle(Priority.INFO,
|
||||
"Mismatching class versions, returning content. "
|
||||
+ className + " version: " + version);
|
||||
return content;
|
||||
"Mismatched versions, attempting version transformation from:\n "
|
||||
+ version + " to: " + classVersion + " class: "
|
||||
+ className);
|
||||
try {
|
||||
VersionTransformer transformer = VersionTransformer
|
||||
.getInstance();
|
||||
String transformedXML = transformer.transform(content,
|
||||
className, classVersion, version);
|
||||
|
||||
return EbxmlJaxbManager.getInstance().getJaxbManager()
|
||||
.unmarshalFromXml(transformedXML);
|
||||
} catch (Exception e) {
|
||||
throw new SerializationException("Unable to transform object! "
|
||||
+ className + "\n" + content, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,338 @@
|
|||
/**
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
**/
|
||||
package com.raytheon.uf.common.registry.ebxml.version;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.io.StringWriter;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.xml.transform.Source;
|
||||
import javax.xml.transform.Transformer;
|
||||
import javax.xml.transform.TransformerException;
|
||||
import javax.xml.transform.TransformerFactory;
|
||||
import javax.xml.transform.URIResolver;
|
||||
import javax.xml.transform.stream.StreamResult;
|
||||
import javax.xml.transform.stream.StreamSource;
|
||||
|
||||
import com.raytheon.uf.common.localization.FileUpdatedMessage;
|
||||
import com.raytheon.uf.common.localization.ILocalizationFileObserver;
|
||||
import com.raytheon.uf.common.localization.IPathManager;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
|
||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
|
||||
import com.raytheon.uf.common.localization.LocalizationFile;
|
||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||
import com.raytheon.uf.common.status.UFStatus;
|
||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||
|
||||
/**
|
||||
*
|
||||
* Uses XSLT files to transform other versions of Registry classes into the
|
||||
* current version.
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* 3/2/2014 2789 dhladky Initial implementation
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1
|
||||
*/
|
||||
|
||||
public class VersionTransformer implements ILocalizationFileObserver {
|
||||
|
||||
private static final IUFStatusHandler statusHandler = UFStatus
|
||||
.getHandler(VersionTransformer.class);
|
||||
|
||||
/** Path to XSLT file PREFIX **/
|
||||
private static final String XSLT_FILE_PREFIX = IPathManager.SEPARATOR
|
||||
+ "registry" + IPathManager.SEPARATOR + "versions"
|
||||
+ IPathManager.SEPARATOR;
|
||||
|
||||
/** XSLT file SUFFIX **/
|
||||
private static final String XSLT_FILE_SUFFIX = ".xsl";
|
||||
|
||||
/** Factory for generating XSLT transformations */
|
||||
private static final TransformerFactory factory = TransformerFactory
|
||||
.newInstance();
|
||||
|
||||
/** Map of XSLT files for quick lookup **/
|
||||
private static ConcurrentHashMap<String, File> styleSheetFiles;
|
||||
|
||||
/** Singleton instance of this class */
|
||||
private static VersionTransformer instance = new VersionTransformer();
|
||||
|
||||
/** Helps resolve path to XSLT files **/
|
||||
private static Resolver resolver;
|
||||
|
||||
/** Version target for transformation **/
|
||||
private final static String target_version_property = "target_version";
|
||||
|
||||
/** Content version for transformation **/
|
||||
private final static String content_version_property = "content_version";
|
||||
|
||||
/** Private Constructor **/
|
||||
private VersionTransformer() {
|
||||
styleSheetFiles = new ConcurrentHashMap<String, File>();
|
||||
resolver = new Resolver();
|
||||
}
|
||||
|
||||
/** Public test constructor **/
|
||||
public VersionTransformer(String path) {
|
||||
styleSheetFiles = new ConcurrentHashMap<String, File>();
|
||||
resolver = new Resolver(path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an instance of this singleton.
|
||||
*/
|
||||
public static VersionTransformer getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Transform the content into the given classes current XML version.
|
||||
*
|
||||
* @param content
|
||||
* @param className
|
||||
* @param targetVersion
|
||||
* @param contentVersion
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public String transform(String content, String className, String targetVersion, String contentVersion) throws Exception {
|
||||
|
||||
StringWriter outputWriter = new StringWriter();
|
||||
File styleSheet = getStyleSheet(className);
|
||||
FileReader styleSheetReader = new FileReader(styleSheet);
|
||||
String newXML = null;
|
||||
|
||||
Transformer transformer = factory.newTransformer(new StreamSource(
|
||||
styleSheetReader));
|
||||
// Sets version you want to go to,
|
||||
// Will use this in the future for scaling our XSLT to convert to target versions.
|
||||
transformer.setParameter(target_version_property, targetVersion);
|
||||
transformer.setParameter(content_version_property, contentVersion);
|
||||
// read imported sheets from the same directory, use resolver
|
||||
factory.setURIResolver(resolver);
|
||||
|
||||
transformer.transform(new StreamSource(new StringReader(content)),
|
||||
new StreamResult(outputWriter));
|
||||
// Make string of new XML
|
||||
newXML = outputWriter.toString();
|
||||
|
||||
if (statusHandler.isPriorityEnabled(Priority.DEBUG)) {
|
||||
statusHandler.info("Transform successful: " + className);
|
||||
}
|
||||
|
||||
return newXML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Looks up and locates the styleSheet in localization
|
||||
*
|
||||
* @param className
|
||||
* @return
|
||||
*/
|
||||
private File getStyleSheet(String className) {
|
||||
|
||||
String path = className + XSLT_FILE_SUFFIX;
|
||||
File styleSheet = styleSheetFiles.get(path);
|
||||
|
||||
if (styleSheet == null) {
|
||||
styleSheet = resolver.getInitialFile(path);
|
||||
styleSheetFiles.put(path, styleSheet);
|
||||
}
|
||||
|
||||
return styleSheet;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Appends the base directory to the URI for the XSL templates
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 24, 2014 dhladky Initial creation
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
*/
|
||||
public class Resolver implements URIResolver {
|
||||
|
||||
private String testPath = null;
|
||||
/**
|
||||
* public construct
|
||||
*/
|
||||
public Resolver() {
|
||||
|
||||
}
|
||||
|
||||
public Resolver(String mainPath) {
|
||||
this.testPath = mainPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append the base_path to the template file and returns the files as a
|
||||
* stream.
|
||||
*/
|
||||
public Source resolve(String href, String base) {
|
||||
|
||||
File file = null;
|
||||
|
||||
if (testPath != null) {
|
||||
StringBuffer path = new StringBuffer(this.testPath);
|
||||
path.append(href);
|
||||
file = styleSheetFiles.get(path.toString());
|
||||
|
||||
if (file == null) {
|
||||
file = new File(path.toString());
|
||||
styleSheetFiles.put(path.toString(), file);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
String path = XSLT_FILE_PREFIX + href;
|
||||
file = styleSheetFiles.get(path);
|
||||
|
||||
// Add templates loaded by the Transformer to the cache as well
|
||||
if (file == null) {
|
||||
file = getLocalizationFile(path);
|
||||
styleSheetFiles.put(path, file);
|
||||
}
|
||||
}
|
||||
|
||||
if (file != null && file.exists()) {
|
||||
return new StreamSource(file);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for the top level, initial XSL call
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public File getInitialFile(String name) {
|
||||
|
||||
File file = null;
|
||||
|
||||
if (testPath != null) {
|
||||
StringBuffer path = new StringBuffer(this.testPath);
|
||||
path.append(name);
|
||||
file = new File(path.toString());
|
||||
} else {
|
||||
String path = XSLT_FILE_PREFIX+name;
|
||||
file = getLocalizationFile(path);
|
||||
}
|
||||
|
||||
if (file != null && file.exists()) {
|
||||
return file;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a file from localization
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
private static File getLocalizationFile(String path) {
|
||||
|
||||
IPathManager pm = PathManagerFactory.getPathManager();
|
||||
LocalizationContext lc = pm.getContext(LocalizationType.EDEX_STATIC, LocalizationLevel.BASE);
|
||||
LocalizationFile lf = pm.getLocalizationFile(lc, path);
|
||||
lf.addFileUpdatedObserver(getInstance());
|
||||
|
||||
return lf.getFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fileUpdated(FileUpdatedMessage message) {
|
||||
|
||||
if (message.getFileName().startsWith(XSLT_FILE_PREFIX)) {
|
||||
try {
|
||||
String key = message.getFileName();
|
||||
|
||||
if (styleSheetFiles.containsKey(key)) {
|
||||
// update the map
|
||||
File file = resolver.getInitialFile(key);
|
||||
if (file != null) {
|
||||
styleSheetFiles.replace(key, file);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
statusHandler.handle(Priority.WARN,
|
||||
"VersionTransformer: " + message.getFileName()
|
||||
+ " File couldn't be updated.", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used for testing only!
|
||||
* @param argv
|
||||
* @throws TransformerException
|
||||
* @throws IOException
|
||||
*/
|
||||
public static void main(String[] argv) throws TransformerException, IOException {
|
||||
if (argv.length != 3) {
|
||||
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
VersionTransformer vt = new VersionTransformer(argv[2]);
|
||||
factory.setURIResolver(VersionTransformer.resolver);
|
||||
|
||||
StringWriter outputWriter = new StringWriter();
|
||||
|
||||
FileReader styleSheetReader = new FileReader(new File(argv[1]));
|
||||
|
||||
Transformer transformer = factory.newTransformer(new StreamSource(
|
||||
styleSheetReader));
|
||||
|
||||
transformer.transform(new StreamSource(
|
||||
new FileReader(new File(argv[0]))), new StreamResult(
|
||||
outputWriter));
|
||||
System.out.println(outputWriter.toString());
|
||||
|
||||
}
|
||||
}
|
|
@ -213,6 +213,7 @@ public class BandwidthDaoUtil<T extends Time, C extends Coverage> {
|
|||
}
|
||||
|
||||
while (!start.after(subscriptionCalculatedEnd)) {
|
||||
if (!hours.isEmpty()) {
|
||||
for (Integer cycle : hours) {
|
||||
start.set(Calendar.HOUR_OF_DAY, cycle);
|
||||
for (Integer minute : minutes) {
|
||||
|
@ -228,7 +229,8 @@ public class BandwidthDaoUtil<T extends Time, C extends Coverage> {
|
|||
* Fine grain check by hour and minute, for
|
||||
* subscription(start/end), activePeriod(start/end)
|
||||
*/
|
||||
if (!subscription.inActivePeriodWindow(retrievalTime)) {
|
||||
if (!subscription
|
||||
.inActivePeriodWindow(retrievalTime)) {
|
||||
// don't schedule this retrieval time,
|
||||
// outside subscription window
|
||||
continue;
|
||||
|
@ -242,6 +244,7 @@ public class BandwidthDaoUtil<T extends Time, C extends Coverage> {
|
|||
start.add(Calendar.DAY_OF_YEAR, 1);
|
||||
start.set(Calendar.HOUR_OF_DAY, hours.first());
|
||||
}
|
||||
}
|
||||
|
||||
return subscriptionTimes;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- * This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S.
|
||||
EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted
|
||||
data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires * an
|
||||
export license or other authorization. * * Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340 * Mail Stop B8 * Omaha,
|
||||
NE 68106 * 402.291.0100 * * See the AWIPS II Master Rights File ("Master
|
||||
Rights File.pdf") for * further licensing information. * * Adhocsubscription.xsl
|
||||
* * <pre> * * SOFTWARE HISTORY * * Date Ticket# Engineer Description ******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
* * </pre> * * @author dhladky * @version 1.0 -->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="adhocSubscription">
|
||||
|
||||
<adhocSubscription xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</adhocSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Connection.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="connection" name="connection">
|
||||
<xsl:element name="connection">
|
||||
<xsl:if test="userName">
|
||||
<xsl:element name="userName">
|
||||
<xsl:value-of select="userName" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="password">
|
||||
<xsl:element name="password">
|
||||
<xsl:value-of select="password" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="encryption">
|
||||
<xsl:apply-templates select="encryption" />
|
||||
</xsl:if>
|
||||
<xsl:if test="url">
|
||||
<xsl:element name="url">
|
||||
<xsl:value-of select="url" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="encryption">
|
||||
<xsl:element name="encryption">
|
||||
<xsl:if test="padding">
|
||||
<xsl:element name="padding">
|
||||
<xsl:value-of select="padding" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="algorithim">
|
||||
<xsl:element name="algorithim">
|
||||
<xsl:value-of select="algorithim" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,129 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Coverage.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.GriddedCoverage.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="coverage" name="coverage">
|
||||
|
||||
<coverage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:if test="@xsi:type != ''">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- figure out which type of coverage we are processing -->
|
||||
<xsl:if test="@xsi:type='griddedCoverage'">
|
||||
<xsl:call-template name="griddedCoverage" />
|
||||
</xsl:if>
|
||||
|
||||
<!-- envelope templates -->
|
||||
<xsl:if test="envelope">
|
||||
<xsl:apply-templates select="envelope" />
|
||||
</xsl:if>
|
||||
<xsl:if test="requestEnvelope">
|
||||
<xsl:apply-templates select="requestEnvelope" />
|
||||
</xsl:if>
|
||||
|
||||
</coverage>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="requestEnvelope">
|
||||
<xsl:element name="requestEnvelope">
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="maxY">
|
||||
<xsl:value-of select="@maxY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="minY">
|
||||
<xsl:value-of select="@minY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxX != ''">
|
||||
<xsl:attribute name="maxX">
|
||||
<xsl:value-of select="@maxX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@minX != ''">
|
||||
<xsl:attribute name="minX">
|
||||
<xsl:value-of select="@minX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="crs">
|
||||
<xsl:element name="crs">
|
||||
<xsl:value-of select="crs" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="envelope">
|
||||
<xsl:element name="envelope">
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="maxY">
|
||||
<xsl:value-of select="@maxY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="minY">
|
||||
<xsl:value-of select="@minY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxX != ''">
|
||||
<xsl:attribute name="maxX">
|
||||
<xsl:value-of select="@maxX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@minX != ''">
|
||||
<xsl:attribute name="minX">
|
||||
<xsl:value-of select="@minX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="crs">
|
||||
<xsl:element name="crs">
|
||||
<xsl:value-of select="crs" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* DataSet.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.WFSPointDataSet.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.OpenDapGriddedDataSet.xsl" />
|
||||
|
||||
<!-- Add any new DataSet types/templates to this list of if checks -->
|
||||
<xsl:if test="openDapGriddedDataSet">
|
||||
<xsl:call-template name="openDapGriddedDataSet" />
|
||||
</xsl:if>
|
||||
<xsl:if test="wfsPointDataSet">
|
||||
<xsl:call-template name="wfsPointDataSet" />
|
||||
</xsl:if>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* DataSetMetaData.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.PointDataSetMetaData.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.OpenDapGriddedDataSetMetaData.xsl" />
|
||||
|
||||
<!-- Add any new DataSetMetaData types/templates to this list of if checks -->
|
||||
<xsl:if test="openDapGriddedDataSetMetaData">
|
||||
<xsl:call-template name="openDapGriddedDataSetMetaData" />
|
||||
</xsl:if>
|
||||
<xsl:if test="pointDataSetMetaData">
|
||||
<xsl:call-template name="pointDataSetMetaData" />
|
||||
</xsl:if>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* DataSetName.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<!-- Text field, no XSLT -->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:output method="text" indent="yes" />
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Ensemble.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="ensemble" name="ensemble">
|
||||
<xsl:element name="ensemble">
|
||||
<xsl:if test="members != ''">
|
||||
<xsl:attribute name="members">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="selectedMembers != ''">
|
||||
<xsl:attribute name="selectedMembers">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* GriddedCoverage.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="coverage" name="griddedCoverage">
|
||||
|
||||
<xsl:if test="@gridName != ''">
|
||||
<xsl:attribute name="gridName">
|
||||
<xsl:value-of select="@gridName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@modelName != ''">
|
||||
<xsl:attribute name="modelName">
|
||||
<xsl:value-of select="@modelName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="gridCoverage" />
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="gridCoverage">
|
||||
<xsl:element name="gridCoverage">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
<!-- figure out which type of coverage we are processing -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="@xsi:type='latLonGridCoverage'">
|
||||
<xsl:element name="name">
|
||||
<xsl:value-of select="name" />
|
||||
</xsl:element>
|
||||
<xsl:element name="geometry">
|
||||
<xsl:value-of select="geometry" />
|
||||
</xsl:element>
|
||||
<xsl:element name="crsWKT">
|
||||
<xsl:value-of select="crsWKT" />
|
||||
</xsl:element>
|
||||
<xsl:element name="la1">
|
||||
<xsl:value-of select="la1" />
|
||||
</xsl:element>
|
||||
<xsl:element name="lo1">
|
||||
<xsl:value-of select="lo1" />
|
||||
</xsl:element>
|
||||
<xsl:element name="firstGridPointCorner">
|
||||
<xsl:value-of select="firstGridPointCorner" />
|
||||
</xsl:element>
|
||||
<xsl:element name="nx">
|
||||
<xsl:value-of select="nx" />
|
||||
</xsl:element>
|
||||
<xsl:element name="ny">
|
||||
<xsl:value-of select="ny" />
|
||||
</xsl:element>
|
||||
<xsl:element name="dx">
|
||||
<xsl:value-of select="dx" />
|
||||
</xsl:element>
|
||||
<xsl:element name="dy">
|
||||
<xsl:value-of select="dy" />
|
||||
</xsl:element>
|
||||
<xsl:element name="spacingUnit">
|
||||
<xsl:value-of select="spacingUnit" />
|
||||
</xsl:element>
|
||||
<xsl:element name="la2">
|
||||
<xsl:value-of select="la2" />
|
||||
</xsl:element>
|
||||
<xsl:element name="lo2">
|
||||
<xsl:value-of select="lo2" />
|
||||
</xsl:element>
|
||||
<xsl:element name="isThin">
|
||||
<xsl:value-of select="isThin" />
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- We don't have any others right now. -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,65 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* GriddedTime.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="time" name="griddedTime">
|
||||
<xsl:if test="step">
|
||||
<xsl:element name="step">
|
||||
<xsl:value-of select="step" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="stepUnit">
|
||||
<xsl:element name="stepUnit">
|
||||
<xsl:value-of select="stepUnit" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="selectedTimeIndices">
|
||||
<xsl:element name="selectedTimeIndices">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="cycleTimes">
|
||||
<xsl:element name="cycleTimes">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,115 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* GropupDefinition.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns2="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="groupDefinition" name="groupDefinition">
|
||||
|
||||
<groupDefinition xmlns:ns2="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns4="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns9="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns5="http://www.w3.org/1999/xlink" xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns7="http://www.w3.org/2005/08/addressing" xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0">
|
||||
|
||||
<xsl:if test="@subscriptionEnd != ''">
|
||||
<xsl:attribute name="subscriptionEnd">
|
||||
<xsl:value-of select="@subscriptionEnd" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionStart != ''">
|
||||
<xsl:attribute name="subscriptionStart">
|
||||
<xsl:value-of select="@subscriptionStart" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@activePeriodEnd != ''">
|
||||
<xsl:attribute name="activePeriodEnd">
|
||||
<xsl:value-of select="@activePeriodEnd" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@activePeriodStart != ''">
|
||||
<xsl:attribute name="activePeriodStart">
|
||||
<xsl:value-of select="@activePeriodStart" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@owner != ''">
|
||||
<xsl:attribute name="owner">
|
||||
<xsl:value-of select="@owner" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@groupName != ''">
|
||||
<xsl:attribute name="groupName">
|
||||
<xsl:value-of select="@groupName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="envelope">
|
||||
<xsl:element name="envelope">
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="maxY">
|
||||
<xsl:value-of select="@maxY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxY != ''">
|
||||
<xsl:attribute name="minY">
|
||||
<xsl:value-of select="@minY" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@maxX != ''">
|
||||
<xsl:attribute name="maxX">
|
||||
<xsl:value-of select="@maxX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@minX != ''">
|
||||
<xsl:attribute name="minX">
|
||||
<xsl:value-of select="@minX" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="crs != ''">
|
||||
<xsl:element name="crs">
|
||||
<xsl:value-of select="crs" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</groupDefinition>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* InitialPendingSharedSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="initialPendingSharedSubscription"
|
||||
name="initialPendingSharedSubscription">
|
||||
|
||||
<initialPendingSiteSubscription
|
||||
xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:if test="@changeReqId != ''">
|
||||
<xsl:attribute name="changeReqId">
|
||||
<xsl:value-of select="@changeReqId" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@changeReason != ''">
|
||||
<xsl:attribute name="changeReason">
|
||||
<xsl:value-of select="@changeReason" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</initialPendingSiteSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,71 @@
|
|||
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?><!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* InitialPendingSiteSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="initialPendingSiteSubscription"
|
||||
name="initialPendingSiteSubscription">
|
||||
|
||||
<initialPendingSiteSubscription
|
||||
xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:if test="@changeReqId != ''">
|
||||
<xsl:attribute name="changeReqId">
|
||||
<xsl:value-of select="@changeReqId" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@changeReason != ''">
|
||||
<xsl:attribute name="changeReason">
|
||||
<xsl:value-of select="@changeReason" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</initialPendingSiteSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,172 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* OpenDapGriddedDataSet.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="com.raytheon.uf.common.datadelivery.registry"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Parameter.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Time.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Coverage.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Ensemble.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="openDapGriddedDataSet" name="openDapGriddedDataSet">
|
||||
|
||||
<openDapGriddedDataSet
|
||||
xmlns:ns2="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns9="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns5="http://www.w3.org/2005/08/addressing" xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0">
|
||||
|
||||
<xsl:if test="@dataSetType != ''">
|
||||
<xsl:attribute name="dataSetType">
|
||||
<xsl:value-of select="@dataSetType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetName != ''">
|
||||
<xsl:attribute name="dataSetName">
|
||||
<xsl:value-of select="@dataSetName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@collectionName != ''">
|
||||
<xsl:attribute name="collectionName">
|
||||
<xsl:value-of select="@collectionName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@providerName != ''">
|
||||
<xsl:attribute name="providerName">
|
||||
<xsl:value-of select="@providerName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:apply-templates select="parameters" />
|
||||
<xsl:apply-templates select="coverage" />
|
||||
<xsl:apply-templates select="time" />
|
||||
<xsl:apply-templates select="ensemble" />
|
||||
|
||||
<xsl:if test="availabilityOffset">
|
||||
<xsl:element name="availabilityOffset">
|
||||
<xsl:value-of select="availabilityOffset" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="cycles">
|
||||
<xsl:element name="cycles">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="forecastHours">
|
||||
<xsl:element name="forecastHours">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:apply-templates select="cyclesToUrls" />
|
||||
|
||||
<xsl:for-each select="cycleUpdate">
|
||||
<xsl:element name="cycleUpdate">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
|
||||
</openDapGriddedDataSet>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="parameters">
|
||||
<parameters>
|
||||
<xsl:for-each select="entry">
|
||||
<xsl:element name="entry">
|
||||
<xsl:apply-templates select="key" />
|
||||
<xsl:apply-templates select="value" />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</parameters>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cyclesToUrls">
|
||||
<xsl:element name="cyclesToUrls">
|
||||
<xsl:for-each select="entry">
|
||||
<xsl:element name="entry">
|
||||
<xsl:apply-templates select="key" />
|
||||
<xsl:apply-templates select="value" />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="key">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@xsi:type='xs:string'">
|
||||
<key xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:value-of select="." />
|
||||
</key>
|
||||
</xsl:when>
|
||||
<xsl:when test="@xsi:type='xs:int'">
|
||||
<key xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:value-of select="." />
|
||||
</key>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- unknown type, do nothing -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="value">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@xsi:type='xs:string'">
|
||||
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:value-of select="." />
|
||||
</value>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="parameterValue" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,164 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* OpenDapGriddedDataSetMetaData.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Time.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="openDapGriddedDataSetMetaData"
|
||||
name="openDapGriddedDataSetMetaData">
|
||||
|
||||
<openDapGriddedDataSetMetaData
|
||||
xmlns:ns2="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns9="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns5="http://www.w3.org/2005/08/addressing" xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0">
|
||||
|
||||
<xsl:if test="@cycle != ''">
|
||||
<xsl:attribute name="cycle">
|
||||
<xsl:value-of select="@cycle" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetDescription != ''">
|
||||
<xsl:attribute name="dataSetDescription">
|
||||
<xsl:value-of select="@dataSetDescription" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetName != ''">
|
||||
<xsl:attribute name="dataSetName">
|
||||
<xsl:value-of select="@dataSetName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@date != ''">
|
||||
<xsl:attribute name="date">
|
||||
<xsl:value-of select="@date" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@providerName != ''">
|
||||
<xsl:attribute name="providerName">
|
||||
<xsl:value-of select="@providerName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@url != ''">
|
||||
<xsl:attribute name="url">
|
||||
<xsl:value-of select="@url" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:apply-templates select="time" />
|
||||
|
||||
<xsl:if test="availabilityOffset">
|
||||
<xsl:element name="availabilityOffset">
|
||||
<xsl:value-of select="availabilityOffset" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="levelTypes" />
|
||||
|
||||
</openDapGriddedDataSetMetaData>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="levelTypes">
|
||||
<xsl:element name="levelTypes">
|
||||
<xsl:for-each select="entry">
|
||||
<xsl:element name="entry">
|
||||
<xsl:apply-templates select="key" />
|
||||
<xsl:apply-templates select="value" />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="key">
|
||||
<key xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:if test="@xsi:type != ''">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@type != ''">
|
||||
<xsl:attribute name="type">
|
||||
<xsl:value-of select="@type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@unit != ''">
|
||||
<xsl:attribute name="unit">
|
||||
<xsl:value-of select="@unit" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="layer">
|
||||
<xsl:element name="layer">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</key>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="value">
|
||||
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:if test="@xsi:type != ''">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dz != ''">
|
||||
<xsl:attribute name="dz">
|
||||
<xsl:value-of select="@dz" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@type != ''">
|
||||
<xsl:attribute name="type">
|
||||
<xsl:value-of select="@type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@name != ''">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="level">
|
||||
<xsl:element name="level">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</value>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,191 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?><!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Parameter.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<!-- regular old parameter -->
|
||||
<xsl:template match="parameter" name="bareParameter">
|
||||
<xsl:element name="parameter">
|
||||
<xsl:call-template name="parameterAttributes" />
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Used when a parameter is namespace referenced. -->
|
||||
<xsl:template match="ns9:parameter" name="parameter">
|
||||
<ns9:parameter xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="parameterAttributes" />
|
||||
</ns9:parameter>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Used when a parameter is nested in a map as a value, which it frequently
|
||||
is. -->
|
||||
<xsl:template match="value" name="parameterValue">
|
||||
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="parameterAttributes" />
|
||||
</value>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="levelType" name="levelType">
|
||||
<xsl:element name="levelType">
|
||||
<xsl:if test="@unit != ''">
|
||||
<xsl:attribute name="unit">
|
||||
<xsl:value-of select="@unit" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@type != ''">
|
||||
<xsl:attribute name="type">
|
||||
<xsl:value-of select="@type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="layer">
|
||||
<xsl:element name="layer">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="levels">
|
||||
<xsl:element name="levels">
|
||||
<xsl:if test="@dz != ''">
|
||||
<xsl:attribute name="dz">
|
||||
<xsl:value-of select="@dz" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@levelType != ''">
|
||||
<xsl:attribute name="levelType">
|
||||
<xsl:value-of select="@levelType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@name != ''">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@requestLevelEnd != ''">
|
||||
<xsl:attribute name="requestLevelEnd">
|
||||
<xsl:value-of select="@requestLevelEnd" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@requestLevelStart != ''">
|
||||
<xsl:attribute name="requestLevelStart">
|
||||
<xsl:value-of select="@requestLevelStart" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="level">
|
||||
<xsl:for-each select="level">
|
||||
<xsl:element name="level">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="selectedLevelIndices">
|
||||
<xsl:for-each select="selectedLevelIndices">
|
||||
<xsl:element name="selectedLevelIndices">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="parameterAttributes">
|
||||
<xsl:if test="@baseType != ''">
|
||||
<xsl:attribute name="baseType">
|
||||
<xsl:value-of select="@baseType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@fillValue != ''">
|
||||
<xsl:attribute name="fillValue">
|
||||
<xsl:value-of select="@fillValue" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@missingValue != ''">
|
||||
<xsl:attribute name="missingValue">
|
||||
<xsl:value-of select="@missingValue" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataType != ''">
|
||||
<xsl:attribute name="dataType">
|
||||
<xsl:value-of select="@dataType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@units != ''">
|
||||
<xsl:attribute name="units">
|
||||
<xsl:value-of select="@units" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@definition != ''">
|
||||
<xsl:attribute name="definition">
|
||||
<xsl:value-of select="@definition" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@providerName != ''">
|
||||
<xsl:attribute name="providerName">
|
||||
<xsl:value-of select="@providerName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@name != ''">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:if test="levelType">
|
||||
<xsl:for-each select="levelType">
|
||||
<xsl:call-template name="levelType" />
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="levels">
|
||||
<xsl:apply-templates select="levels" />
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,65 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* ParameterLevel.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="parameterLevel">
|
||||
|
||||
<parameterLevel xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:if test="@levelId != ''">
|
||||
<xsl:attribute name="levelId">
|
||||
<xsl:value-of select="@levelId" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@levelValue != ''">
|
||||
<xsl:attribute name="levelValue">
|
||||
<xsl:value-of select="@levelValue" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
</parameterLevel>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* PendingSharedSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="pendingSharedSubscription" name="pendingSharedSubscription">
|
||||
|
||||
<pendingSharedSubscription
|
||||
xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</pendingSharedSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,60 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* PendingSiteSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="pendingSiteSubscription" name="pendingSiteSubscription">
|
||||
|
||||
<pendingSiteSubscription
|
||||
xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</pendingSiteSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,94 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* PointDataSetMetaData.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Parameter.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Connection.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Time.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="pointDataSetMetaData" name="pointDataSetMetaData">
|
||||
|
||||
<pointDataSetMetaData
|
||||
xmlns:ns2="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns4="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns9="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns6="http://www.w3.org/1999/xlink" xmlns:ns7="http://www.w3.org/2005/08/addressing"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0">
|
||||
|
||||
<xsl:if test="@date != ''">
|
||||
<xsl:attribute name="date">
|
||||
<xsl:value-of select="@date" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@providerName != ''">
|
||||
<xsl:attribute name="providerName">
|
||||
<xsl:value-of select="@providerName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetName != ''">
|
||||
<xsl:attribute name="dataSetName">
|
||||
<xsl:value-of select="@dataSetName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetDescription != ''">
|
||||
<xsl:attribute name="dataSetDescription">
|
||||
<xsl:value-of select="@dataSetDescription" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@url != ''">
|
||||
<xsl:attribute name="url">
|
||||
<xsl:value-of select="@url" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<!-- List of applied templates -->
|
||||
<xsl:apply-templates select="time" />
|
||||
|
||||
<xsl:if test="availabilityOffset">
|
||||
<xsl:element name="availabilityOffset">
|
||||
<xsl:value-of select="availabilityOffset" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
</pointDataSetMetaData>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* PointTime.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="time" name="pointTime">
|
||||
<xsl:if test="interval">
|
||||
<xsl:element name="interval">
|
||||
<xsl:value-of select="interval" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="times">
|
||||
<xsl:element name="times">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,60 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Projection.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="projection" name="projection">
|
||||
<projection>
|
||||
<xsl:if test="@type != ''">
|
||||
<xsl:attribute name="type">
|
||||
<xsl:value-of select="@type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="name">
|
||||
<xsl:element name="name">
|
||||
<xsl:value-of select="name" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="description">
|
||||
<xsl:element name="description">
|
||||
<xsl:value-of select="description" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</projection>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,107 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Provider.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Connection.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Projection.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="provider" name="provider">
|
||||
|
||||
<provider xmlns:ns2="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns4="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns3="http://www.w3.org/2005/08/addressing" xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0">
|
||||
|
||||
<xsl:if test="@serviceType != ''">
|
||||
<xsl:attribute name="serviceType">
|
||||
<xsl:value-of select="@serviceType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@name != ''">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:if test="connection">
|
||||
<xsl:apply-templates select="connection" />
|
||||
</xsl:if>
|
||||
<xsl:if test="projection">
|
||||
<xsl:apply-templates select="projection" />
|
||||
</xsl:if>
|
||||
<xsl:for-each select="providerType">
|
||||
<xsl:call-template name="providerType" />
|
||||
</xsl:for-each>
|
||||
<xsl:if test="postedFileDelay">
|
||||
<xsl:element name="postedFileDelay">
|
||||
<xsl:value-of select="postedFileDelay" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="timeBetweenCrawlRequests">
|
||||
<xsl:element name="timeBetweenCrawlRequests">
|
||||
<xsl:value-of select="timeBetweenCrawlRequests" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</provider>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="providerType" name="providerType">
|
||||
<xsl:element name="providerType">
|
||||
<xsl:if test="@availabilityDelay != ''">
|
||||
<xsl:attribute name="availabilityDelay">
|
||||
<xsl:value-of select="@availabilityDelay" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@plugin != ''">
|
||||
<xsl:attribute name="plugin">
|
||||
<xsl:value-of select="@plugin" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataType != ''">
|
||||
<xsl:attribute name="dataType">
|
||||
<xsl:value-of select="@dataType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* SharedSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="sharedSubscription" name="sharedSubscription">
|
||||
|
||||
<sharedSubscription
|
||||
xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</sharedSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* SiteSubscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Subscription.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="siteSubscription" name="siteSubscription">
|
||||
|
||||
<siteSubscription xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
|
||||
xmlns:ns4="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0">
|
||||
|
||||
<xsl:call-template name="subscription" />
|
||||
|
||||
</siteSubscription>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,204 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Subscription.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Time.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Parameter.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Ensemble.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Coverage.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template name="subscription">
|
||||
|
||||
<xsl:if test="@owner != ''">
|
||||
<xsl:attribute name="owner">
|
||||
<xsl:value-of select="@owner" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionState != ''">
|
||||
<xsl:attribute name="subscriptionState">
|
||||
<xsl:value-of select="@subscriptionState" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionType != ''">
|
||||
<xsl:attribute name="subscriptionType">
|
||||
<xsl:value-of select="@subscriptionType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@originatingSite != ''">
|
||||
<xsl:attribute name="originatingSite">
|
||||
<xsl:value-of select="@originatingSite" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@latencyInMinutes != ''">
|
||||
<xsl:attribute name="latencyInMinutes">
|
||||
<xsl:value-of select="@latencyInMinutes" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@route != ''">
|
||||
<xsl:attribute name="route">
|
||||
<xsl:value-of select="@route" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@description != ''">
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@description" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetSize != ''">
|
||||
<xsl:attribute name="dataSetSize">
|
||||
<xsl:value-of select="@dataSetSize" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@fullDataSet != ''">
|
||||
<xsl:attribute name="fullDataSet">
|
||||
<xsl:value-of select="@fullDataSet" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionEnd != ''">
|
||||
<xsl:attribute name="subscriptionEnd">
|
||||
<xsl:value-of select="@subscriptionEnd" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionStart != ''">
|
||||
<xsl:attribute name="subscriptionStart">
|
||||
<xsl:value-of select="@subscriptionStart" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@activePeriodEnd != ''">
|
||||
<xsl:attribute name="activePeriodEnd">
|
||||
<xsl:value-of select="@activePeriodEnd" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@activePeriodStart != ''">
|
||||
<xsl:attribute name="activePeriodStart">
|
||||
<xsl:value-of select="@activePeriodStart" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@priority != ''">
|
||||
<xsl:attribute name="priority">
|
||||
<xsl:value-of select="@priority" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@provider != ''">
|
||||
<xsl:attribute name="provider">
|
||||
<xsl:value-of select="@provider" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@groupName != ''">
|
||||
<xsl:attribute name="groupName">
|
||||
<xsl:value-of select="@groupName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@name != ''">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionId != ''">
|
||||
<xsl:attribute name="subscriptionId">
|
||||
<xsl:value-of select="@subscriptionId" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@deleted != ''">
|
||||
<xsl:attribute name="deleted">
|
||||
<xsl:value-of select="@deleted" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@id != ''">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="@id" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@subscriptionId != ''">
|
||||
<xsl:attribute name="subscriptionId">
|
||||
<xsl:value-of select="@subscriptionId" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetType != ''">
|
||||
<xsl:attribute name="dataSetType">
|
||||
<xsl:value-of select="@dataSetType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@url != ''">
|
||||
<xsl:attribute name="url">
|
||||
<xsl:value-of select="@url" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@unscheduled != ''">
|
||||
<xsl:attribute name="unscheduled">
|
||||
<xsl:value-of select="@unscheduled" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@dataSetName != ''">
|
||||
<xsl:attribute name="dataSetName">
|
||||
<xsl:value-of select="@dataSetName" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@valid != ''">
|
||||
<xsl:attribute name="valid">
|
||||
<xsl:value-of select="@valid" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@description != ''">
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@description" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="officeId">
|
||||
<xsl:element name="officeId">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:apply-templates select="coverage" />
|
||||
<xsl:apply-templates select="time" />
|
||||
<xsl:if test="ensemble">
|
||||
<xsl:apply-templates select="ensemble" />
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="parameter">
|
||||
<xsl:call-template name="bareParameter" />
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* Time.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.GriddedTime.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.PointTime.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="time" name="time">
|
||||
<time xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xsl:if test="@xsi:type != ''">
|
||||
<xsl:attribute name="xsi:type">
|
||||
<xsl:value-of select="@xsi:type" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@format != ''">
|
||||
<xsl:attribute name="format">
|
||||
<xsl:value-of select="@format" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@numTimes != ''">
|
||||
<xsl:attribute name="numTimes">
|
||||
<xsl:value-of select="@numTimes" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!-- figure out which type of time we are processing -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="@xsi:type='pointTime'">
|
||||
<xsl:call-template name="pointTime" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@xsi:type='griddedTime'">
|
||||
<xsl:call-template name="griddedTime" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- unknown type, do nothing -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:if test="start">
|
||||
<xsl:element name="start">
|
||||
<xsl:value-of select="start" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="end">
|
||||
<xsl:element name="end">
|
||||
<xsl:value-of select="end" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="requestStart">
|
||||
<xsl:element name="requestStart">
|
||||
<xsl:value-of select="requestStart" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="requestEnd">
|
||||
<xsl:element name="requestEnd">
|
||||
<xsl:value-of select="requestEnd" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</time>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
*
|
||||
* WFSPointDataSet.xsl
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
******************************************************************
|
||||
* Mar 02, 2014 2789 dhladky XSLT transformation of other versions to current.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry" version="1.0">
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Parameter.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Time.xsl" />
|
||||
<xsl:import
|
||||
href="./com.raytheon.uf.common.datadelivery.registry.Coverage.xsl" />
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="wfsPointDataSet" name="wfsPointDataSet">
|
||||
|
||||
<wfsPointDataSet xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
|
||||
xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
|
||||
xmlns:ns9="com.raytheon.uf.common.datadelivery.registry"
|
||||
xmlns:ns5="http://www.w3.org/2005/08/addressing" xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0"
|
||||
xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0"
|
||||
xmlns:ns8="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0">
|
||||
|
||||
<xsl:attribute name="dataSetType">
|
||||
<xsl:value-of select="@dataSetType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="dataSetName">
|
||||
<xsl:value-of select="@dataSetName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="collectionName">
|
||||
<xsl:value-of select="@collectionName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="providerName">
|
||||
<xsl:value-of select="@providerName" />
|
||||
</xsl:attribute>
|
||||
|
||||
<!-- List of applied templates -->
|
||||
<xsl:apply-templates select="parameters" />
|
||||
<xsl:apply-templates select="coverage" />
|
||||
<xsl:apply-templates select="time" />
|
||||
|
||||
<xsl:if test="availabilityOffset">
|
||||
<xsl:element name="availabilityOffset">
|
||||
<xsl:value-of select="availabilityOffset" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
</wfsPointDataSet>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="parameters">
|
||||
<xsl:element name="parameters">
|
||||
<xsl:for-each select="entry">
|
||||
<xsl:element name="entry">
|
||||
<xsl:apply-templates select="key" />
|
||||
<xsl:apply-templates select="value" />
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="key">
|
||||
<key xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:value-of select="." />
|
||||
</key>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="value">
|
||||
<xsl:apply-templates select="parameterValue" />
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Reference in a new issue