xsl-list
[Top] [All Lists]

Re: [xsl] Processing two documents, which order?

2011-04-08 04:58:01
On Fri, 8 Apr 2011 10:38:21 +0100 (IST)
"Tony Graham" <tgraham(_at_)mentea(_dot_)net> wrote:

On Fri, April 8, 2011 9:52 am, Dave Pawson wrote:
...
  <xsl:template match="text()">

Or

   <xsl:template match="text()[not(parent::property)]">

so, if you also order the property list from longest to shortest, you
won't mark up a shorter property name inside a longer.

for this list the only danger is xxx-yyy
[And emacs won't sort by length... will it?]
so restricting the termination is suffficent I think.
<xsl:analyze-string select="." regex="({$property})[\s.,&#x22;,&#x27;]">
The Punctuation class (very hard to find! ) is just too big for this
use case.



...
<xsl:template match="*">
  <xsl:copy>
    <xsl:apply-templates select="@*" />
    <xsl:apply-templates >

You just stripped all comments and PIs.  Is that a problem?

Comments added back in from identity transform :-)
Thanks Tony




-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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