Skip to content
Advertisement

Tag: xslt

xslt node replace then ingest with javascript

I replace in memory XML node based on specific path before ingestion into NoSQL (marklogic) database. Input: /doc1.xml I replace the /before:image/before:DE/before:before value to a parameter value Xsl: Expected output: I try to parameterize my xsl, but got the error: Answer Why! Shouldn’t it have been

How to include javaScript file in xslt

How can I include/import javaScript file/libary in xslt file. Answer If you need to use the javascript in the transformation (for example, it contains a set of extension functions that are called within the transformation), you need to put the javascript contents (at least that of one javascript file) in a separate XSLT stylesheet file, using the proper extension element

Advertisement