Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the category data to be published. This can be a category instance XML string or an XSLT routine that generates a category instance XML string from a given input.
<categoryData>
</categoryData>
xs:string
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None
Child Elements
None
Parent Elements
Element |
Description |
|---|---|
The publication rule to be applied to the specified category instance. |
Text Value
None
Remarks
The element value can be a category instance XML string or an XSLT that produces a category instance XML string.
Example
The following example shows a publication rule for publishing an state[@type='aggregateState'] category instance to the Block container.
<publicationRule ruleType="bootstrap" categoryName="state" containerId="32000">
<instanceId type="constant" value="0" />
<expireType type="static" />
<categoryData>
<state xmlns="https://schemas.microsoft.com/2006/09/sip/state"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
manual="false" xsi:type="aggregateState">
<availability>18500</availability>
</state>
</categoryData>
</publicationRule>
In this example, the category data is a hard-coded XML string of an state[@type='aggregateState'] category instance.
The following example shows a publication rule for publishing a note category instance to the Public container.
<publicationRule ruleType="transformation" categoryName="note" containerId="100">
<categoryData>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ct="https://schemas.microsoft.com/2006/09/sip/commontypes"
xmlns:tns="https://schemas.microsoft.com/2006/09/sip/note"
exclude-result-prefixes="tns ct">
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="node()">
<xsl:apply-templates select="//tns:note"/>
</xsl:template>
<xsl:template match="tns:note">
<xsl:copy />
</xsl:template>
</xsl:stylesheet>
</categoryData>
</publicationRule>
In this example, the category data is an XSLT-generated XML string of the note category instance.
Element Information
Namespace |
https://schemas.microsoft.com/2008/09/sip/categoryPublicationManifest |
Schema Name |
categoryPublicationManifest |
Validation File |
PublicationGrammarSchemaForNewPublicationManifest.xsd |
Can be Empty |
False |