xsl-list
[Top] [All Lists]

Re: [xsl] Saxon-EE 9.4.0.6 can't adress comment nodes

2013-04-09 12:50:10

I'm always a bit reticent about discussing product-specific issues on this list 
- I like to be helpful to users and I don't mind doing it in public, but I'm 
conscious that not everyone on the list is interested. There's a Saxon specific 
forum at http://saxonica.plan.io which you are welcome to use.

I can't see any obvious reason for this behaviour. Schema validation per se 
shouldn't lose the comments, although it ignores them. How are you invoking the 
transformation?

Michael Kay
Saxonica

On 9 Apr 2013, at 16:44, bjoern(_dot_)duenckel(_at_)pagina-tuebingen(_dot_)de 
wrote:

With Saxon-EE 9.4.0.6 I can't adress comment nodes.

  Source
  -----------------------------------------------
  <?xml version="1.0" encoding="UTF-8"?>
  <r>
       <!-- This is a comment. -->
  </r>
  -----------------------------------------------

  Stylesheet
  -----------------------------------------------
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  version="2.0">
       <xsl:output method="text"/>
       <xsl:template match="/">
           <xsl:value-of select="count(//comment())"/>
       </xsl:template>
  </xsl:stylesheet>
  -----------------------------------------------

  Output with Saxon-EE 9.4.0.6
  -----------------------------------------------
  0
  -----------------------------------------------

  Output with Saxon-PE 9.4.0.6 (and any other Transformer I tried)
  -----------------------------------------------
  1
  -----------------------------------------------


Do you agree, that this is a saxon bug?
Or am I missing something about schema-awareness that would explain this 
behavior?

Regards

Björn Dünckel

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



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