Re: [xsl] Namespace Problem

Subject: Re: [xsl] Namespace Problem
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Wed, 16 Jul 2008 05:37:46 -0700
Oops, apologies for overlooking that aspect of the question.  What I
had written still applies in that the default processing was occuring,
but I'm guessing now that you knew that was going on.

> The elements are in the namespace http://docbook.org/ns/docbook, to 
> select or match them with XPath 1.0/XSLT 1.0 you need to qualify element 
> names e.g.
> > <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > 		xmlns="http://www.w3.org/1999/xhtml";
> > 		xmlns:h="http://www.w3.org/1999/xhtml";
> >                 xmlns:ng="http://docbook.org/docbook-ng";
> >                 xmlns:db="http://docbook.org/ns/docbook";
> >                 exclude-result-prefixes="db ng">
> >   <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
> >   <xsl:template match="book">
> 
>      <xsl:template match="db:book">
> 
> >           <xsl:value-of select="title"/>
> 
>              <xsl:value-of select="db:title"/>
> 
> and so on.
> 
> 
> -- 
> 
> 	Martin Honnen
> 	http://JavaScript.FAQTs.com/
> 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson@xxxxxxxxxxxx
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

Current Thread