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: XPATH for attribute with different namespace from element


>> 	<xsl:template match="rdf:RDF/channel/@rdf:about">
>                                     ^^^^
>  <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>    xmlns:rss="http://purl.org/rss/1.0">
>...
>    <xsl:template match="rdf:RDF/rss:channel/@rdf:about">

Thanks for the help and I thought that might be the problem, but I tried 

rdf:RDF/:channel

and it matched the channel successfully but

rdf:RDF/:channel/@rdf:about

wouldn't match the @rdf:about

I wanted to know if it was possiable to do it without redefining the default namespace.

Edward


 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]