this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

xsl-list
[Top] [All Lists]

Re: [xsl] Normalizing space / XPTY0004

2013-07-30 15:14:40
Is there some reason not to use
  <xsl:template match="Paragraph[@stylename = 'Body']">
    <xsl:apply-templates select="./TextRun/Text/@value"/>
  </xsl:template>
?

Not that I can see ... though the "./" is redundant.

Right. Good point. I was just copying from the OP -- all I did was
s/value-of/apply-templates/;. :-)


What led you to believe this was verboten?

Only that Gerrit and Michael had raised other solutions that, IMHO,
seem a little less XSLT-ish. So I thought maybe there was some
"gotcha" I had overlooked.

Thanks, Ken!

-- 
 Syd Bauman, EMT-Paramedic
 Senior XML Programmer/Analyst
 Northeastern University Women Writers Project
 Syd_Bauman(_at_)alumni(_dot_)Brown(_dot_)edu
 N.B.: New e-mail address is s(_dot_)bauman(_at_)neu(_dot_)edu



--~------------------------------------------------------------------
XSL-List info and archive:  https://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: https://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>