[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Namespace Problem

Subject: Re: Namespace Problem
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Wed, 16 Jul 2008 05:37:46 -0700
Re:  Namespace Problem
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.