|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Pattern for attribute matching
> But suppose I want to match a `bar' attribute that's attached > to a `foo' element. My first guess would be > > match="foo/@bar" > > But that doesn't seem entirely right because attributes are > not children of element nodes, but rather associated with element nodes. Your first guess is quite correct. "/" is used with all axes, not just the child axis; and @bar is shorthand for attribute::bar. So "foo/@bar" means find the nodes named foo, then find the nodes named bar by following the attribute axis. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








