RE: The terminology1xml.xml test case - is it correct?

Hi Mārcis,

Renat had a similar question.
See http://lists.w3.org/Archives/Public/public-multilingualweb-lt-tests/2013Jan/0064.html

Hope this helps,
-yves


From: Mārcis Pinnis [mailto:marcis.pinnis@Tilde.lv] 
Sent: Thursday, February 21, 2013 9:03 AM
To: Multilingual Web LT-TESTS Public
Cc: Pēteris Ņikiforovs
Subject: The terminology1xml.xml test case - is it correct?

Hi All,

We came accross one issue and would like other opinions.

The input file for Terminology „terminology1xml.xml” contains an „id” function that according to our investigation (understanding so far) can only be evaluated if a document contains a DTD: 

<text
  xmlns:its="http://www.w3.org/2005/11/its" >
<its:rules version="2.0">
  <its:termRule selector="//term" term="yes" termInfoPointer="id(@def)"/>
</its:rules>
<p>We may define <term def="TDPV">discoursal point of view</term>
as <gloss xml:id="TDPV">the relationship, expressed through discourse
  structure, between the implied author or some other addresser,
  and the fiction.</gloss>
</p>
</text>

One of our developers raised a question in stackowerflow and this is what we got back:

The id() function only works correctly if the source XML document has a DTD with elements defined as ID -- without such a DTD don't expect the id() function to be evaluated as wanted -- in any compliant XPath implementation.

http://stackoverflow.com/questions/15004559/alternative-to-xpath-id-in-net#comment21080095_15004559

So ... the question is – is the example valid? It does not have a DTD as far as we know?

Best regards,
Mārcis ;o)

Received on Thursday, 21 February 2013 16:21:05 UTC