[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] xpath into docbook namespace
Hi, If you are using the namespace-aware version of the stylesheets (with "-ns-" in the directory name), then you need to add the namespace declaration to your stylesheet and use the namespace in element matches. See this doc for details: http://www.sagehill.net/docbookxsl/CustomDb5Xsl.html Assuming the context of the xpath is correct for selecting article, an xpath such as d:article/d:title would be appropriate. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Franklin Einspruch" <franklin.einspruch@gmail.com> To: <docbook-apps@lists.oasis-open.org> Sent: Sunday, March 29, 2009 6:54 PM Subject: [docbook-apps] xpath into docbook namespace > Hi - Docbook newb here. What is the XPath selector for <title> in the > following trivial Docbook article? The regular article/title isn't > working because of the namespace declaration, although I don't know > why. > > <?xml version="1.0" encoding="utf-8"?> > <article xmlns="http://docbook.org/ns/docbook" version="5.0"> > <title>I Am The Title</title> > </article> > > Thank you. > > Franklin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]