On 15-02-23 01:33 PM, Hayim Lapin wrote:
> Dear TEI-ers,
> I recently encountered a problem and I don't know if it is an encoding
> error on my part or a validation problem under TEI-all.
> I am developing markup of morphological segments from a classical Hebrew
> text. Since the markup stands off from the source text, I want to use
> string-range on the element m to designate the segment, thus:
> <w xml:id="abc">postprandial</w>
> and then, elsewhere,
> <m type="prefix" corresp="string-range(#abc,0,4)" ana="...">post</m>
> So far so good.
> The problem arises because the particular <w> is in another file, and I
> want to use a prefix definition to abbreviate the path to the file. So,
> if the path to the file is "../folder/text.xml", and the prefix is "wd",
> the following is valid,
> <m type="prefix" corresp="string-range( ../folder/text.xml#abc,0,4)"
> but the following, using the prefix, is not
> <m type="prefix" corresp="string-range(wd:abc,0,4)" ana="...">post</m>
> Am I doing something wrong?
I think you need a hash in front of your string-range:
That works for me. What is going to parse it for you is another
> Please advise!
> Hayim Lapin
> Robert H. Smith Professor of Jewish Studies
> Professor of History
> University of Maryland
> College Park, MD 20742
> 301 405 4296
> www.digitalmishnah.org | dev.digitalmishnah.org