xsl-list
[Top] [All Lists]

Re: [xsl] Saxon 6.5.5 v Saxon-EE 9.3.0.5

2012-06-18 08:47:35
As David Carlisle says, the id() function is sensitive to variations in how the XML is parsed, and in particular how the DTD is handled. In general I would avoid it for this reason: use key() instead. The exceptions are (a) if your ID attributes are named xml:id, and (b) if you are running schema-aware with the ID attributes declared as xs:ID in the schema; but even then, using key() is more interoperable.

Michael Kay
Saxonica

On 18/06/2012 13:59, Flanders, Charles E (US SSA) wrote:
Can someone please explain to me why this code:

<fo:basic-link>
    <xsl:text disable-output-escaping="yes">Figure&#38;#x00A0;</xsl:text>
       <xsl:for-each select="id(@assocfig)">
          <xsl:number count="figure" format="1" from="//ginfowp | //maintwp | //thrywp | 
//ctrlindwp" level="any"/>
       </xsl:for-each>
</fo:basic-link>

Produces the expected result when I use Saxon 6.5.5 but produces no output when 
I use Saxon-EE 9.3.0.5 with Oxygen 13? Specifically the use of the id() 
function.

I have other instances in the style sheets using the id() function where the 
same problem arises.

Thanks.

C Flanders



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

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