I am trying to learn Clover, and am unable to figure out how to get an XSLTransformer to output the transformed XML. I have verified that my stylesheet works (external xalan-j test), and simply want to read in XML file, transform it, and output a single XML string to the next component.
Right now I am using the pop-up browser window to configure the “XML input file or field” and “XML output file or field”, and I am certain the “XML input file or field” is working as the console log claims the appropriate file is being read. However, the “XML output file or field” is set to “port:$0.XML:discrete” (XML is the name of the metadata field I created
for the XML string), and nothing is being emitted. From what I am reading
in the docs, I need to be making use of the “transform()” function somewhere in my output mappings. Since I don’t see it anywhere I assume this is the problem, but I can’t figure out how to use it.
Graph source is below:
<?xml version="1.0" encoding="UTF-8"?>
<Graph author="bfrutchey" created="Mon Jun 06 20:39:01 CDT 2011" guiVersion="3.0.1" id="1307422235174" licenseCode="CLP1DENDEC30590134BY" licenseType="Commercial Pro" modified="Wed Jun 08 08:26:23 CDT 2011" modifiedBy="bfrutchey" name="LoadLocationTaxonomy" revision="1.20">
<Global>
<Metadata id="Metadata0" previewAttachmentCharset="ISO-8859-1">
<Record name="XML" previewAttachmentCharset="ISO-8859-1" type="delimited">
<Field eofAsDelimiter="true" name="XML" type="string"/>
</Record>
</Metadata>
<Property fileURL="workspace.prm" id="GraphParameter0"/>
<Dictionary/>
</Global>
<Phase number="0">
<Node enabled="enabled" fileURL="${DATAOUT_DIR}/test_output.txt" guiHeight="0" guiName="UniversalDataWriter" guiWidth="0" guiX="324" guiY="161" id="DATA_WRITER1" type="DATA_WRITER"/>
<Node enabled="enabled" guiHeight="0" guiName="XSLTransformer" guiWidth="0" guiX="113" guiY="160" id="XSL_TRANSFORMER0" type="XSL_TRANSFORMER" xmlInputFile="../i94_data/location-ext.xml" xmlOutputFile="port:$0.XML:discrete" xsltFile="${DATAIN_DIR}/ReferentialExternalDimensionsToDelimited.xsl"/>
<Edge fromNode="XSL_TRANSFORMER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge2" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (out)" toNode="DATA_WRITER1:0"/>
</Phase>
</Graph>