Customer Portal

XSLTranformer usage

Comments 1

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    unfortunately it doesn't work. I've reported the problem to our bug tracking system (XSLTransformer doesn't send data to output port, when defined with xmlOutputFile attribute); you can browse it with guest/guest credentials.
    As a workaround use XSLTransformer without input and output port (write the output to temporary file, that downstream Reader can read) or with both input and output ports and mapping attribute:
    <?xml version="1.0" encoding="UTF-8"?>
    <Graph author="bfrutchey" created="Mon Jun 06 20:39:01 CDT 2011" guiVersion="0.0.0.devel" id="1307422235174" licenseType="Evaluation Devel" modified="Thu Jun 09 10:25:49 CEST 2011" modifiedBy="avackova" name="LoadLocationTaxonomy" revision="1.24" showComponentDetails="false">
    <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="../i94_data/location-ext.xml" guiHeight="69" guiName="UniversalDataReader" guiWidth="128" guiX="32" guiY="70" id="DATA_READER0" type="DATA_READER"/>
    <Node enabled="enabled" fileURL="${DATAOUT_DIR}/test_output.txt" guiHeight="69" guiName="UniversalDataWriter" guiWidth="128" guiX="375" guiY="70" id="DATA_WRITER1" type="DATA_WRITER"/>
    <Node enabled="enabled" guiHeight="69" guiName="XSLTransformer" guiWidth="128" guiX="209" guiY="70" id="XSL_TRANSFORMER0" mapping="$0.XML:=transform($0.XML);" type="XSL_TRANSFORMER" xsltFile="${DATAIN_DIR}/ReferentialExternalDimensionsToDelimited.xsl"/>
    <Edge fromNode="DATA_READER0:0" guiBendpoints="" guiLocks="null|null|null" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="XSL_TRANSFORMER0:0"/>
    <Edge fromNode="XSL_TRANSFORMER0:0" guiBendpoints="" guiLocks="null|null|null" guiRouter="Manhattan" id="Edge2" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (out)" toNode="DATA_WRITER1:0"/>
    </Phase>
    </Graph>

Please sign in to leave a comment.