Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Transformation doesn't via url Transformation doesn't via urlTo: NULL Date: 3/9/2005 9:35:00 PM When I read some xml via a local file my transformation works. When I do via a url it doesn't When I say it doesn't I mean instead of a table with table cells produced by looping through the xml I get the outer tag of the table and no content. Can anyone help? It's like it can't find the nodes Here is the xml from the browser <?xml version="1.0" encoding="UTF-8" ?> - <root> - <dbo.tblCategories CategoryID="1" Category="Category1"> <dbo.tblSubCategories SubCategoryID="1" SubCategoryName="SubCategory1" /> <dbo.tblSubCategories SubCategoryID="2" SubCategoryName="SubCategory2" /> <dbo.tblSubCategories SubCategoryID="3" SubCategoryName="SubCategory3" /> </dbo.tblCategories> - <dbo.tblCategories CategoryID="2" Category="Category2"> <dbo.tblSubCategories SubCategoryID="4" SubCategoryName="SubCategory4" /> <dbo.tblSubCategories SubCategoryID="5" SubCategoryName="SubCategory5" /> <dbo.tblSubCategories SubCategoryID="6" SubCategoryName="SubCategory6" /> </dbo.tblCategories> </root> Here is the style sheet. <?xml version='1.0' encoding='UTF-8'?> <xsl:stylesheet version="1.0":xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <table> <xsl:apply-templates/> </table> </xsl:template> <xsl:template match="dbo.tblCategories"> <tr><td bgcolor="#EEEEEE"><xsl:value-of select="@Category"/></td></tr> <xsl:for-each select="dbo.tblSubCategories"> <tr><td><xsl:value-of select="@SubCategoryName"/></td></tr> </xsl:for-each> </xsl:template> </xsl:stylesheet> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
