In the spirit of the simpara example in the poweruser documentation, I
am trying to apply an xslt sheet to sections of a document, replacing
the corresponding section of the original with the translated section.
I'm extending the DocBook configuration, so all of these operations
apply to DocBook files.  The command that seems to be buggy is the
docbook.specifyChangesOwner command.  When I select any element other
than the document root, the macro runs correctly, the translation
occurs as expected, and I eventually see the "After paste..." alert.
That works.  However, when I select the document root (in my
experiments, the article element) and try to run the command, the
translation does not occur and the macro never gets to the "After
paste..." alert.  Am I missing something?  Is there some validity
constraint I'm overlooking?  I've attached a zip file of the
configuration file and the xslt sheet for your convenience.

Strangely enough, when I uncomment the first alert, the macro never gets
to the second alert, and the whole macro no longer works in any case.

While I'm on the topic, I would like to ask another question.  Is there
any command which will select an arbitrary section of the document (in
particular, I want to be able to select the root)?  I tried the get
command, but that apparently only gets textual content.  The various
selectNode commands are useful only with respect to the current node,
and not for general purpose selection.

Thanks, and take care,

    John L. Clark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: docbook.zip
Type: application/x-zip-compressed
Size: 1700 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20031203/8b6eeb91/attachment.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20031203/8b6eeb91/attachment.sig
 

Reply via email to