<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
***********************
XSLT Params
***********************
-->
<!--
Required Param OpDir for transform:-
Sub directory where the additional output XML files will be placed
in URI format so that we can use this to create multi output files.
-->
<xsl:param name="paramOpDir">file:/C:/Junk/SaxArchive/TestOut/</xsl:param>
<!--
Required Param OpDir Plain for transform:-
Output directory not in uri format.
-->
<xsl:param name="paramOpDirPlain">c:\Junk\SaxArchive\TestOut\</xsl:param>
<!--
Required Param Spec name:-
Current spec name being processed.
-->
<xsl:param name="paramSpecName">HiggsClassifieds</xsl:param>
<!--
Required Param FileName:-
Current file being transformed.
-->
<xsl:param name="paramFileName">File</xsl:param>
<!--
***********************
Global Variables
***********************
-->
<!--
Set the op dir if supplied or default
-->
<!--
***********************
OP MODE TEXT
***********************
-->
<xsl:output encoding="CP1252" method="xml"/>
<!--
**********************************
Create some OP with a match
**********************************
-->
<xsl:template match="/">
<root><xsl:apply-templates/></root>
</xsl:template>
<xsl:template match="OrderInsert">
<ad>
<xsl:variable name="UCaseTitle" select="upper-case(substring-before(TextVersion/RTF_Text, '<FP>B'))"/>
<xsl:variable name="Body" select="replace(substring-after(TextVersion/RTF_Text, '<FP>B'), '
', '')"/>
<id><xsl:value-of select="OrderRow/Order_Record/URN_text"/></id>
<section><xsl:value-of select="OrderRow/Classification_Short_Name"/></section>
<text><xsl:value-of select="replace(concat($UCaseTitle,' ',$Body),'<FP>',' ')"/></text>
</ad>
</xsl:template>
</xsl:stylesheet>