xsl-list
[Top] [All Lists]

Re[2]: [xsl] applying code from inside the comment

2007-01-17 02:17:09
Good morning guys,

Note, however, that this still doesn't ensure it'll always work. If 
your comments are broken, they might be really broken ... for example

DC> ah but that might not be broken, it might even be valid, just not XML,
DC> in which case all you need is a different parser. tag soup if you are
DC> sensible or for people on this list who'd obviously prefer something
DC> written in xslt than java...

We're doing this, but that is a compex task. The program never
knows where is the best place for the closing tag. So if we match the
unclosed tag and are trying to find the position for its pair, in most
cases we'll get the result we dont need: xml is valid, but broken in
a complex way. That IMO hardens debugging. So we dont need to match
all unclosed tags with its pairs but only inform developer about bug
found. Smth like

<xsl:message terminate="yes">BIG BAD BUG</xsl:message>

In processing of html document we can substitute the unclosed tag
with corresponding javascript etc.

Have you ever wrote such scripts? Maybe we can share some experience
:)

-- 
Alexey                            
mailto:alexey(_dot_)nikolaenkov(_at_)actimind(_dot_)com


--~------------------------------------------------------------------
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>
--~--

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