How do I get output Modifier of a group in the hierarchical QXPS 7 schema with QXPS 8.1.x?

Our Technical Support Portal has changed as we have moved to a new platform. Please visit support.quark.com to access your support tickets or to log a new ticket with us. All our existing customers should look for an email from support@quark.com for activation of their New Support Account. If you face any difficulty in accessing the new portal, please write to us at support@quark.com

How do I get output Modifier of a group in the hierarchical QXPS 7 schema with QXPS 8.1.x?

Apply the following XSLT at runtime to renditions:

 

<? version='1.0' encoding='UTF-8'?>
<xsl:stylesheet ns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
   
<xsl:template match='@*|node()'>
       
<xsl:copy><xsl:apply-templates select='@*|node()'/></xsl:copy>
   
</xsl:template>
   
<xsl:template match='BOX | GROUP' priority='0'>
       
<xsl:variable name='uid'><xsl:value-of select='ID/@UID'/></xsl:variable>
       
<xsl:if test='count(//BOXREF[@UID = $uid]) = 0'>
           
<xsl:copy><xsl:apply-templates select='@*|node()'/></xsl:copy>
       
</xsl:if>
   
</xsl:template>
   
<xsl:template match='BOXREF'>
       
<xsl:variable name='uid'><xsl:value-of select='@UID'/></xsl:variable>
       
<xsl:for-each select='//BOX[ID/@UID=$uid]'>
           
<xsl:copy><xsl:apply-templates select='@*|node()'/></xsl:copy>
       
</xsl:for-each>
       
<xsl:for-each select='//GROUP[ID/@UID=$uid]'>
           
<xsl:copy><xsl:apply-templates select='@*|node()'/></xsl:copy>
       
</xsl:for-each>
   
</xsl:template>
</xsl:stylesheet>

 

Sample URL: http://localhost:8080//QXPDocname.qxp?XSL=file:XsltlocationandName.xslt

Was this answer helpful?YesNo
Topic Information
  • Topic #: 30026-1835
  • Date Created: 11/20/2012
  • Last Modified Since: 11/20/2012
  • Viewed: 1155
Welcome Guest