[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Target Namespace in XML breaks XSL transform
Hi, When I specify a target namespace for the root element in my XSL document, e.g. <Events xmlns="urn:cde.berkeley.edu:babl:events:1.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:cde.berkeley.edu:babl:events:1.00 UCBEvents.xsd"> it appears that I then need to use a namespace prefix for every element from that document referenced in my XSL transform. So I can't do this: <xsl:value-of select="Events/View/FormatCalendar/ShortName"/> But instead have to do this: <xsl:value-of select="ev:Events/ev:View/ev:FormatCalendar/ev:ShortName"/> This is a huge stylesheet and there are three different stylesheets I'd have to modify, so to do this MANY changes will have to be made. I need the target namespace in my XML document if I want to validate it. Is there any way around modifying all my XSLs? Thanks! Allison Bloodworth Principal Administrative Analyst Technology Program Office University of California, Berkeley (415) 377-8243 abloodworth@xxxxxxxxxxxx
|
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
|