[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: filtering elements using identity transform

Subject: Re: filtering elements using identity transform
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 31 Mar 2005 14:40:01 +0100
Re:  filtering elements using identity transform
] You were right. There was an xmlns in my xhtml input and Iam
] surprised nobody saw it because it was there in the xhtml snippet I posted
] yesterday.

we needed to know if there was (or was not) one on the top level
element. Your latest posting shows that there is not one.


] <html>
]   <head>
] 
]   </head>
]   <body>
]     <p>
]       <table>
]        <tr>

so these are html elements in no-namespace.
A template such as  match="p" would match these elements


]           <slideshow author="Yours Truly" title="Sample Slide Show" date
]      ="Date of publication"  xmlns="urn:hl7-org/v3">

here you change to the namespace urn:hl7-org/v3 

]          <td>
The namespace urn:hl7-org/v3 is still in effect here so this is not td in
no-namespace but is td in the namespace urn:hl7-org/v3 
match="td" will therefore _not_ match this element.
You could use
match="v3:td" xmlns:v3="urn:hl7-org/v3 "
but most likely to intend this td element to be in the same namespace
as the surrounding <table> in which case your input is in error and you
need <td xmlns="">

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.