XComponent Datasheet (xc2.xco)

Compliant with the XPipe XML Component Architecture (http://xpipe.sourceforge.net)

Null Transformation - XSLT

Documentation

Synopsis

Do nothing i.e. replicate input file on output file having passed input through XSLT engine.

Parameters

None

Description

Do nothing i.e. replicate input file on output file.

Details Summary
Version0.1
Author Sean McGrath
KeyWordsXSLT
Null Transformation
Parameters

Pre
HREFNone
TypeNone
EncodingPLAIN
ExtractFilenameNone
CLASSPATHNone
BodyNone

Code
TypeXSLT
EncodingPLAIN
ExtractFilenameNone
CLASSPATHNone
<!-- Null Transformation -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <!-- Whenever you match any node or any attribute -->
  <xsl:template match="node()|@*">
    <!-- Copy the current node -->
    <xsl:copy>
      <!-- Including any attributes it has and any child nodes -->
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>

Post
HREFNone
TypeNone
EncodingPLAIN
ExtractFilenameNone
CLASSPATHNone
BodyNone

Test : First Test
Parameters
Input
HREF#UnitTestFile1
EncodingPLAIN
BodyNone
Output
HREF#UnitTestFile2
EncodingPLAIN
BodyNone

Resource : UnitTestFile1
EncodingPLAIN
ExtractFilenameNone
Body
<?xml version="1.0" encoding="UTF-8"?>
<test>
This is a two
line test document
</test>

Resource : UnitTestFile2
EncodingPLAIN
ExtractFilenameNone
Body
<?xml version="1.0" encoding="UTF-8"?>
<test>
This is a two
line test document
</test>