This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using xsl to test value of node



    <xsl:if test() ="44639"/>  
XSL stylesheets have to be XML XML attribute names  can't include ()
so this won't get past the XML parser, so the xslt engine won't see the
stylesheet. You want
    <xsl:if test=".=44639"/>  

    <xsl:apply-templates select="LOCATION_ID"/> 
in that template the current node is CHARACTER_ID so the above XPath
would select LOCATION_ID children of CHARACTER_ID nodes, but there are
not any, you want
    <xsl:apply-templates select="../LOCATION_ID"/> 

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]