[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #ICS-705208]: How to substitute xls variable inside dataset urlPath Attribute



Hi Peter:

The catalog XML is not processed by XSL, so nothing XSL will work.
Im guessing you are trying to do some late-binding substitution in the catalog?

John

> Can anyone help me, how can I substitute xls variable to urlPath attribute
> of dataset tag ?
> 
> I tried these didn't work
> 
> *1. First one*
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <catalog name="THREDDS Server - NIO " xmlns:xsl="
> http://www.w3.org/1999/XSL/Transform"; xmlns="
> http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> <xsl:variable name="PATH">/server/data/somedirectory/</xsl:variable>
> <dataset name="Annual" ID="Gloabal_merged">
> <urlPath><xsl:value-of select="$PATH"/>/annual.nc</urlPath>
> </dataset>
> 
> </catalog>
> 
> 
> *2. Second one*
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <catalog name="THREDDS Server - NIO " xmlns:xsl="
> http://www.w3.org/1999/XSL/Transform"; xmlns="
> http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> <xsl:variable name="PATH">/server/data/somedirectory/</xsl:variable>
> <dataset name="Annual" ID="Gloabal_merged" urlPath='<xsl:value-of
> select="$PATH"/>/annual.nc' ></dataset>
> 
> </catalog>
> 
> 
> If this is possible kindly share example I am new to both xml and ncml
> 
> 
> Thank you in advance. Have a nice day
> 
> 


Ticket Details
===================
Ticket ID: ICS-705208
Department: Support THREDDS
Priority: Normal
Status: Open