|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL and 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
|
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








