Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Back in the Day .. >Thread Next - Re: Back in the Day .. Re: Back in the Day ..To: NULL Date: 5/2/2006 3:56:00 PM
brian.f.oneil@g... wrote:
> Thanks for the quick inquiry into my problem. Here is the XML I am
> struggling to Transform with the aforementioned XSL :
>
> <PurchaseRequestReportData
> xmlns="http://tempuri.org/PurchaseRequestReportData.xsd">
You need to take note of the default namespace declaration and adapt the
stylesheet as needed e.g.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:prd="http://tempuri.org/PurchaseRequestReportData.xsd"
exclude-result-prefixes="prd">
<xsl:template match="/">
<html>
<body>
<h1>Purchase Request</h1>
<xsl:for-each
select="prd:PurchaseRequestReportData/prd:PurchaseRequest">
<table>
<tr>
<td>Request # :</td>
<td>
<xsl:value-of select="prd:PRNo" />
</td>
</tr>
<tr>
<td>Request Date :</td>
<td>
<xsl:value-of select="prd:CreateDate" />
</td>
</tr>
</table>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
