Hi,
I have an xsl or xml file containing xsl templates:
<xsl:template match="compcd" name="tata">
<compcd>
xsl:value-of select="string(ns0:LOCATIONSPEC[ns0:ASSETATTRID='VS_TYPE']/ns0:ALNVALUE) "</xsl:value-of>
</compcd>
</xsl:template>
<xsl:template match="compcd" name="dada">
<equipnum>
xsl:value-of select="string(ns0:FXSTAMDATASet/ns0:LOCATIONS/ns0:FXCOMPANYNAME)"</xsl :value-of>
</equipnum>
</xsl:template>
:
Etc
I have a noob question about this, in three quick steps, how do I:
1. Add these templates to a database
2. Put that db in a webservice/server
3. Connect to that database and query for the templates within another XSL file?
Pointers to the proper manual would be fine, thanks!
Best,
Simon
Hi Simon,
I have a noob question about this, in three quick steps, how do I:
Add these templates to a database
as XSL files are well-formed XML files, you may add them to the database in the same way as you can add XML files. Please consult our documentation for various ways how to do this (e.g. via the GUI, the REST(XQ) APIs, WebDAV, or the Client APIs).
Put that db in a webservice/server
Our Wiki page on web applications may give you the relevant hints.
Connect to that database and query for the templates within another
XSL file?
The current way to do this is transform your request via XQuery and the XSLT module. We may add a parameter for XSLT transformations to our REST API [4]; details would first have to be specified, though. Would someone out there be interested in such an option?
Christian
[1] http://docs.basex.org/wiki/Main_Page [2] http://docs.basex.org/wiki/Web_Application [3] http://docs.basex.org/wiki/XSLT_Module [4] http://docs.basex.org/wiki/REST#Parameters
basex-talk@mailman.uni-konstanz.de