![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How do get the root node? [Thread Next] Re: How do get the root node?To: NULL Date: 3/20/2008 4:35:00 PM "Martin Honnen" <mahotrash@y...> wrote in message news:ObQD3bqgIHA.748@T...... > tshad wrote: > >> How do I also handle the "xmlns:dt" and the "dt:dt" to get the bin.base64 >> in the xslt file? >> >> <image> >> <binary xmlns:dt="urn:schemas-microsoft-com:datatypes" >> dt:dt="bin.base64" format="jpeg"> >> </image> > > dt:dt is an attribute of the binary element so you can access it like > this: > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0" > xmlns:dt="urn:schemas-microsoft-com:datatypes"> > > <xsl:template match="/"> > <xsl:value-of select="image/binary/@dt:dt"/> > </xsl:template> > </xsl:stylesheet> > I just tried that, but am getting an error saying that "Error 3 Prefix 'dt' is not defined." Thanks, Tom > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
