You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jose Correia <jo...@exinet.co.za> on 2000/08/01 09:01:11 UTC
Re: weird thing happenning with xalan-j 1.1
I'm a bit confused... where did I define that all nodes must have a qualified name like:
<{http://www.w3.org/1999/xhtml}:head>
I know that by declaring:
<html xmlns="http://www.w3.org/1999/xhtml">
all its children then get that ns too unless their override it themselves, but I thought they
got the ns as an attribute like the html element above and not in front of the name like you
say.
Regards
Jose
Paul_Dick@lotus.com wrote:
> Jose writes:
> The conflict seems to be that it does not like the fact that
> I'm specifying the root element to be html and then specifying
> the default xmlns. Whats happening?
>
> You've now defined all the nodes in the source to have fully qualified
> names;
> <{http://www.w3.org/1999/xhtml}:head>
> <{http://www.w3.org/1999/xhtml}:title>
> <{http://www.w3.org/1999/xhtml}:body> etc....
>
> However, within the stylesheet you're matching nodes with unqualified
> names; <head>,
> <title>, <body>. You need to define the xhtml namespace for the stylesheet
> and then
> refer to the elements based on the prefix that you use. i.e.
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:biscotti="http://www.exinet.co.za"
> xmlns:xlink="http://www.w3.org/XML/XLink/" version
> ="1.0"
> xmlns:xht="http://www.w3.org/1999/xhtml">
>
> .......................................................................................
> <xsl:template match ="xht:br">
> <br xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets
> ="br-attributes">
> <xsl:apply-templates/>
> </br>
> </xsl:template>
>
> Paul
--
\=/, _-===-_-===-_-===-_-===-_-==-_
| @___oo ( )_
/\ /\ / (___,,,}_--= )
) /^\) ^\/ _) =_"Positive thinking - a great way )
) /^\/ _) (_ to face life" )
) _ / / _) ( Jose Correia )
/\ )/\/ || | )_) (_ jose@exinet.co.za )
< > |(,,) )__) ( jcorreia@global.co.za )
|| / \)___)\ (_ _)
| \____( )___) )___ -==-_______-=====-___==
\______(_______;;; __;;;