I want to apply templates to some xml that my xsl has genera
Posted: Sat Sep 23, 2006 8:29 pm
Here is my template for processing this data:
<Data>("Apr","1","2");("Ma""y","1","2");("Jun""","1","2";("Jul,05","2","2");(Aug,"45","76");("Sep","3","2");("Oct","1","2");("Nov","1","2");("Dec","1","2")</Data>
<xsl:template name="ParseData">
<xsl:call-template name="CSVProcess_String">
<xsl:with-param name="String"><xsl:value-of select="$RawData"/></xsl:with-param>
<xsl:with-param name="SubNodeName">row</xsl:with-param>
<xsl:with-param name="Delimiter">;</xsl:with-param>
<xsl:with-param name="QuoteChar">#</xsl:with-param>
</xsl:call-template>
</xsl:template>
this outputs:
<?xml version="1.0" encoding="utf-8"?>
<root>
<dataset>
<row>("Apr","1","2")</row>
<row>("Ma""y","1","2")</row>
<row>("Jun""","1","2"</row>
<row>("Jul,05","2","2")</row>
<row>(Aug,"45","76")</row>
<row>("Sep","3","2")</row>
<row>("Oct","1","2")</row>
<row>("Nov","1","2")</row>
<row>("Dec","1","2")</row>
</dataset>
</root>
But I then want to do template matching on this data, i.e. the same thing for every row.
I'm sure it's simple but I'm new to all this and not sure what to search for even.
Thanks in advance,
Alan
<Data>("Apr","1","2");("Ma""y","1","2");("Jun""","1","2";("Jul,05","2","2");(Aug,"45","76");("Sep","3","2");("Oct","1","2");("Nov","1","2");("Dec","1","2")</Data>
<xsl:template name="ParseData">
<xsl:call-template name="CSVProcess_String">
<xsl:with-param name="String"><xsl:value-of select="$RawData"/></xsl:with-param>
<xsl:with-param name="SubNodeName">row</xsl:with-param>
<xsl:with-param name="Delimiter">;</xsl:with-param>
<xsl:with-param name="QuoteChar">#</xsl:with-param>
</xsl:call-template>
</xsl:template>
this outputs:
<?xml version="1.0" encoding="utf-8"?>
<root>
<dataset>
<row>("Apr","1","2")</row>
<row>("Ma""y","1","2")</row>
<row>("Jun""","1","2"</row>
<row>("Jul,05","2","2")</row>
<row>(Aug,"45","76")</row>
<row>("Sep","3","2")</row>
<row>("Oct","1","2")</row>
<row>("Nov","1","2")</row>
<row>("Dec","1","2")</row>
</dataset>
</root>
But I then want to do template matching on this data, i.e. the same thing for every row.
I'm sure it's simple but I'm new to all this and not sure what to search for even.
Thanks in advance,
Alan