2008/12/2 Michael Blakeley <[EMAIL PROTECTED]>:
> Dave,
>
> RecordLoader is rejecting your input XML because it can't find the ID_NAME
> element that you specified in your configuration.

??
ID_NAME=XSLT2
INPUT_PATH=/sgml/site2/2src
URI_SUFFIX=.xml
SKIP_EXISTING=true
THREADS=4
RECORD_NAMESPACE=http://docbook.org/ns/docbook
#CONNECTION_STRING=xcc://user:[EMAIL PROTECTED]:portnumber
CONNECTION_STRING=xcc://dpawson:[EMAIL PROTECTED]:9000

OK, my bad.
from the tutorial
ID_NAME is the name of an element or an attribute that RecordLoader
can use as a unique ID for the input XML. RecordLoader will use this
unique ID as part of the final document URI. If you use an attribute,
put @ in front of its name. For example, if you are processing Medline
XML, you might set ID_NAME=PMID. For XML that uses an attribute named
'id', you would set [EMAIL PROTECTED]


I have
<webpage navto="yes" id="charmaps">

where id is unique to a .... (no idea what Marklogic uses as this
name) 'set' of xml files.
No guarantee it is unique over all the files.

How to specify something like
ID_NAME=XSLT2 (and then webpage/@id) ?
Is that possible?
I.e. prefix it with a constant (my 'set' of files)?










>> The special value ID_NAME=#AUTO will cause RecordLoader to automatically
>> generate ids, in sequence, for each input record. Since RecordLoader
>> automatically includes the base filename in each output URI, this is safe.

Sounds far safer. Thanks.



>>
>> Note that when the input is standard input, the default value is #AUTO -
>> not #FILENAME.
>>
>> The special value ID_NAME=#FILENAME will cause RecordLoader to
>> automatically load each input file into a single document per input
>> file, using the file's basename to compose the new document uri. This is
>> the default behavior.
>>
>> Examples: ID_NAME=MedlineID, [EMAIL PROTECTED]
>
> Given the XML snippet that we see in your stack trace, I'd suggest removing
> ID_NAME entirely (default ID_NAME=#FILENAME).



It would be useful to have the root element/@id 'available' (that's what I use)
but seems it's not possible.


How to get a feature request into MarkLogic?


regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to