This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Namespace problems



 David Carlisle 

> With the original DTD your source document is equivalent to
> 
> <html
>   xmlns="http://openebook.org/namespaces/oeb-document/1.0/">
> ...
> 
> so the html element is in the OEB namespace and since you can 
> only refer
> to namespaced elements in xpath by using a prefix, your stylesheet has
> to look like
> 
> <xsl:stylesheet
>   xmlns:oeb="http://openebook.org/namespaces/oeb-document/1.0/"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
> 
> >
> 
> ...
> 
> <xsl:template match="oeb:html">
> ....

Thanks David. 
Fell foul of production [2] in namespaces rec.

Regards DaveP


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]