![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Extracting date from XML comment Extracting date from XML commentTo: NULL Date: 11/2/2007 1:13:00 AM
I have a XML a want to transform to another XML
with the following commentline
<!-- File generated on 15.10.2007 10:50:43 -->
I need to extract the date and time and put that in a attribute
something like this:
comment
<xsl:template match="/">
<xsl:if test="comment()">
<xsl:variable name="Datum"><xsl:copy-of select="."/></
xsl:variable> <= here I like to do the extracting of the date
</xsl:if>
<Field>
<xsl:attribute name="Name">DATE/xsl:attribute>
<xsl:attribute name="Value"><xsl:value-of select="$Datum"/></
xsl:attribute>
</Field>
</xsl:template>
This is not working I get the message Invalid variable referenceError
in XPath expression, Invalid variable reference
Any Idea on how to extract the date from teh comment?
Astrid
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
