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

Target Namespace in XML breaks XSL transform

Subject: Target Namespace in XML breaks XSL transform
From: "Allison Bloodworth" <abloodworth@xxxxxxxxxxxx>
Date: Fri, 24 Mar 2006 10:51:20 -0800
xml breaks
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

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.