Subject: Re: [xsl] "value-of select" attributes with a namespace From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Wed, 08 Dec 2004 06:30:31 +0100 |
Cheers, Geert
Can anyone tell me why I can't value-of select attributes with a namespace? I dont get the value of the 'status' attribute returned but I can see that the transaction element is matched using an XSLT Debugger. Any Ideas? I am using Firefox v1.
XML ------------------------------------------------------ <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE receipt SYSTEM "http://172.20.0.70:81/evaluator/receipt.dtd"> <?xml-stylesheet type="text/xsl" href="http://172.20.0.70:81/evaluator/receipt.xsl"?> <r:receipt xmlns:r='http://172.20.0.70:81/receipt/' r:received='2004-12-07T14:19:33.438918-08:00'> <r:transaction r:status='http://172.20.0.70:81/smm/set1/status' r:uri='http://172.20.0.70:81/smm/set1'/> </r:receipt>
XSL ------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:r="http://172.20.0.70:81/receipt/">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:apply-templates select="r:receipt/r:transaction"/>
</xsl:template>
<xsl:template match="/r:receipt/r:transaction"> <xsl:value-of select="@status"/> </xsl:template>
</xsl:stylesheet>
__________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] "value-of select" attributes , Derek Basch | Thread | Re: [xsl] "value-of select" attribu, Marian Olteanu |
Re: [xsl] Extracting the grouping f, Peter Wyngaard | Date | Re: [xsl] "value-of select" attribu, Marian Olteanu |
Month |