[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: xsl fails to select html node


Subject: [xsl] Re: xsl fails to select html node
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 27 Aug 2003 06:23:45 +0200

This is really a FFAQ. For an explanation see e.g.:

"None of my XPath select statements will work going against an XML file with
a default namespace. Help! "

at: http://www.topxml.com/people/bosley/defaultns.asp


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL



<fe.sola@xxxxxxxxxxxxxx> wrote in message
news:1061933896.3f4bd348c3510@xxxxxxxxxxxxxxxxx
>
> Hello list:
> This is probably a basic question. I'm applying an xsl transformation to
xhtml files,
> the template:
> <xsl:template match="html">
>       <xsl:apply-templates select="head"/>
>       <xsl:apply-templates select="body"/>
> </xsl:template>
> fails to select the <html> node when it has namespaces attributes. The
exact case is:
> <html xmlns="http://www.w3.org/1999/xhtml">
> Why is this happening? How can I solve it?
> tia,
> Lizet
>
>
>
> -------------------------------------------------
> Este mensaje fue enviado usando el servicio de correo en web de Infomed
> http://webmail.sld.cu
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>




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



Current Thread
Keywords