[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Re: xsl-stylesheets/manpages
You need to put single quotes around anything you want to treat as a string in an XPath expression, in your case, . Use select="' '" instead of select=" ". The latter attempts to find an element named , which is an invalid element name anyway, hence the somewhat cryptic error message. > -----Original Message----- > From: Sam Steingold [mailto:sds@gnu.org] > Sent: Friday, May 23, 2003 11:27 AM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Re: xsl-stylesheets/manpages > > > > * In message <20030515222909.GF1098@redhat.com> > > * On the subject of "Re: Re: xsl-stylesheets/manpages" > > * Sent on Thu, 15 May 2003 23:29:09 +0100 > > * Honorable Tim Waugh <twaugh@redhat.com> writes: > > > > > i.e., every option is printed twice! > > Fixed in CVS; stupid bug (my fault) introduced by merging patches. > > indeed, fixed in 1.61.2 > > > > > Of course you can split them into lines in the template. > > > how? > > > > Using substring-before and a recursive template. But I imagine that > > there will be situations where you might want a comment in > the XML but > > where a forced line break in the output would cause bad > effects. YMMV > > though, and you get to choose where you put your comments. :-) > > I tried this: > > <xsl:template match="comment()"> > <xsl:text> .\""</xsl:text> > <xsl:call-template name="string.subst"> > <xsl:with-param name="string"><xsl:value-of > select="."/></xsl:with-param> > <xsl:with-param name="target" select=" "/> > <xsl:with-param name="replacement" select=' .\""'/> > <xsl:text> </xsl:text></xsl:call-template> > </xsl:template> > > errors: > > XPath error Invalid expression > > ^ > XPath error Invalid expression > .\"" > ^ > compilation error: file man.xsl line 21 element with-param > xsl:param : could not compile select expression ' > .\""' > > help! > > > -- > Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux > <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Bus error -- driver executed. --------------------------------------------------------------------- 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]