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

XSL and Namespaces

Subject: XSL and Namespaces
From: Ed Burns <edburns@xxxxxxx>
Date: Tue, 5 May 1998 16:13:31 -0700
xsl with namespaces
Hi There,

There is nothing substantial about XML namespaces in the XSL spec.  So I
don't know where it stands.

Consider this XML:

<?xml version="1.0"?>
<?xml:namespace href="com.ibm.almaden.parsetools.javaxml" as="BIB" ?>

<rdf>
  <Description HREF="http://www.bar.com/some.doc">
    <BIB:Author BIB:NAME="John Smith" BIB:Email="John@xxxxxxxxx" BIB:Phone="+1-555-123-4567"/>
  </Description>
</rdf>

And this XSL:

<xsl>

<rule>
	<root/>
		<HTML>
			<BODY font-family="Arial, helvetica, sans-serif"
			 font-size="12pt"
			 background-color="#EEEEEE">

			<TABLE ALIGN="center" BORDER="2" BGCOLOR="#FFB57A">
			<children/>
			</TABLE>

			</BODY>
		</HTML>
</rule>

<rule>
	<element type="rdf">
	<any>
		<element type="Description">
			<target-element type="BIB:Author"/>
		</element>
	</any>
	</element>

	<TR>
		<TD><eval>getAttribute("BIB:NAME")</eval></TD>
		<TD><eval>getAttribute("BIB:Email")</eval></TD>
		<TD><eval>getAttribute("BIB:Phone")</eval></TD>

		<children/>
	</TR>

</rule>

</xsl>
	
Is it legal to target elements using a namespace, such as BIB:Author?
MSXML doesn't seem to support it.

What's the word on the street?

Ed


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.