PROCESS |INSTRUCTIONS | COMMANDS
Generated on Fri May 16 17:38:20 CEST 2003
COMMANDES
actionlog.create
color.modify
credit-card.check-number
cron.create
cron.modify
cron.remove
document.execute
domain.create
domain.remove
file.copy
file.delete
file.extract-text
file.link
file.move
file.touch
folder.create
group.add-user
group.create
group.remove
group.remove-user
http.redirect
http.request
image.resize
instance.append-field
instance.create
instance.increment-field
instance.modify
instance.remove
instance.remove-field
instance.remove-locale-content
ldap.create
ldap.modify
ldap.remove
license.sign-file
messageboard.add
object-field.create
object-field.modify
object-field.remove
object.create
object.modify
object.remove
parked-domain.create
parked-domain.remove
privilege.create
privilege.remove
processing-instruction.add
publication-list.create
publication-list.modify
publication-list.remove
publication.create
publication.link
publication.modify
publication.remove
publication.unlink
right.create
right.remove
security.create-encryption-key
security.create-signature-key
security.decrypt-string
security.encrypt-string
security.keystore-create-key
security.keystore-remove-key
security.sign-namespace
site.create
site.exist
site.export
site.modify
site.remove
site.swap
smtp.send
soap.request
sql.delete
sql.increment
sql.insert
sql.update
user.authenticate
user.create
user.exist
user.login
user.logout
user.mail-password
user.modify
user.remove
webservice.request
processing-instruction.add
 

description
Adds a processing instruction to the current document. Especialy useful to add process for execution.

privilege-required
anyone

tx-support
false

 
 INSTRUCTION 
name type default-value required description
method string append false Defines how the PI will be inserted. The possibilities are: 'prepend', 'append', 'insert-before'.
instruction string none true The content of the processing instruction to be added.
reference string none false Used only with method insert-before. Describes the content of the processing instruction the new one must precede. If null or inexistant, the new PI will be appended to the others. Note that you should use " inside declaration mention the " char.
 
 EXAMPLE 

example 1
Simple example

<nvd:command name="processing-instruction.add"
instruction="nvd-process name=&quot;stop-processing&quot;"
method="insert-before"
reference="nvd-process name=&quot;xsl-transform&quot; href=&quot;index.xsl&quot;"
/>
 
example 2
Set XSLT on 'client side' for browers containing "MSIE 6" in their user agent 
and 'server side' for other browsers.

<nvd:nsp>
String s = getVariableAsString( "request.header[User-Agent]" );
if( s.indexOf( "MSIE 6" ) > 0 ) setVariable( "xsltready", "true" );
else setVariable( "xsltready", "false" );
</nvd:nsp>

<nvd:if test="$xsltready == 'false'">
<nvd:command name="processing-instruction.add"
instruction="nvd-process name=&quot;xsl-transform&quot; href=&quot;index.xsl&quot;"/>
</nvd:if>

<nvd:if test="$xsltready == 'true'">
<nvd:command name="processing-instruction.add"
instruction="xml-stylesheet href=&quot;index.xsl&quot; type=&quot;text/xsl&quot;"/>
</nvd:if>