Subject: Re: [xsl] XSL If Statement - Repost From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 22 Aug 2008 15:59:19 +0100 |
> The Matrix tag is present only once in the XML. note that XSLT has no access to the tags in the original source file. (don't use tag to mean eleemnt node, it leads to confusion, there are two tags in <matrix>...</matrix> representing one element node) > I tried xsl:if test="topic/detail/matrix=1" but it didn't work. you have to give us some clues if you want help. If you posted actual code someone would probably run it and tell you what us wrong. If you just post fragments (especillay fragments with all the the xml syntax < > removed) then we can only really make guesses. "didn't work" could mean that you got a syntax error from your xslt processor (which would most likely mean that some of the syntax that you haven't shown in your mail message is wrong) or "didn't work" might mean that you didn't get the answer that you expected, in which case, it would be a lot easier to answer if you said what answer you expected, and what answer you got. > The xml looks like below: why can't you post something that is XML instead of something that leaves us guessing where all the closing tags are, > P.S. - When I give the actual XSLT code in Plain text If you post the code as plain text we'd see it. Probably your mailer is trying to be too clever and thing things with xml markup is html mail, and then failing to undersatnd the tags as they are not html. It will be possible to tell it not to do that, but that's not really a topic for this list. 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, sumit patki | Thread | [xsl] Oxygen editor very slow, Bordeman, Chris |
RE: [xsl] XSL If Statement - Repost, sumit patki | Date | RE: [xsl] XSL If Statement - Repost, sumit patki |
Month |