xsl-list
[Top] [All Lists]

Re: [xsl] XSL If Statement - repost with code

2008-08-24 16:14:22

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. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--