[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XSL If Statement - repost with code
Subject: Re: [xsl] XSL If Statement - repost with code From: David Carlisle <davidc@xxxxxxxxx> Date: Sun, 24 Aug 2008 22:13:58 +0100 |
> I think I can change namespace to > "http://www.w3.org/1999/XSL/Transform" instead of > "http://www.w3.org/TR/WD-xsl" since the xsl file doesn't have any > other WD-XSL specific tags. The code you posted is _full_ of microsoft- wd-xsl spcifuc syntax that won't work with an xslt processor. > Even though I change the namespace, it doesn't work. If you are using msxml2, then it knows nothing of xslt, so an xslt stylesheet obviously won't work, but the solution is to use a system that isn't so old, not to write in wd-xsl. just to point out the main places you need to change. > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> wrong namespace, missing version attribute. <xsl:if match=".[matrix=1]"> xsl:if does not have a match attribute [ can not be used after . Once those are fixed so you have xslt then probably you need to change <xsl:value-of select="topic/detail/tableheading1" /> to <xsl:value-of select="tableheading1" /> as the current element is already the detail element because of the <xsl:for-each select="topic/detail"> David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL If Statement - repost, Michael Kay | Thread | Re: [xsl] XSL If Statement - repost, Sumit Patki |
RE: [xsl] XSL If Statement - repost, Michael Kay | Date | [xsl] XSL flat genealogical structu, Vadim Verenich |
Month |