CONTENTFORM.CFM
------
<cffile action="" file="#GetDirectoryFromPath(GetCurrentTemplatePath())#Article.xsl" variable="articleXSLT">
<cfset articleXSLT = replace(articleXSLT,"[[ID]]",form.articleID)>
<cfset newArticle = xmlParse(xmlTransform(newArticle,articleXSLT))>
ARTICLE.XSL
-----
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<!--load the articles file -->
<xsl:variable name="currentArticles" select="document('C:\WebSites\Resources\Data\XML\FrontPageArticles.xml')"/>
<!-- return one article -->
<xsl:template match="/">
<xsl:param name="articleID" select="'[[ID]]'"/>
<articles>
<xsl:copy-of select="$currentArticles/articles/[EMAIL PROTECTED]"/>
</articles>
</xsl:template>
</xsl:stylesheet>
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

