Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    2

    Default Custom merge rules?

    Consider this override file example:

    Custom.xsl
    Code:
    <xsl:template name="bar">
    </xsl:template>
    Base Old.xsl
    Code:
    <xsl:template name="foo">
    </xsl:template>
    
    <xsl:template name="bar">
    </xsl:template>
    
    <xsl:template name="baz">
    </xsl:template>
    Base New.xsl
    Code:
    <xsl:template name="foo">
     <xsl:if test="/bogus/@val='hello'">
      <xsl:call-template name="dosomething"/>
     </xsl:if>
    </xsl:template>
    
    <xsl:template name="bar">
    </xsl:template>
    
    <xsl:template name="baz">
    </xsl:template>
    Merged.xsl
    Code:
    <!--BC recommends putting bogus IF statement here,
    which I'd like to ignore since it's inside of a template that I haven't
    overridden -->
    
     <xsl:if test="/bogus/@val='hello'">
      <xsl:call-template name="dosomething"/>
     </xsl:if>
    
    <xsl:template name="bar">
    </xsl:template>
    Essentially, is there a way to specify something like:

    IF (Template in NEW doesn't exist in CUSTOM)
    * Ignore inner differences

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,379

    Default

    Hello,

    In your example, that section would be marked as a Conflict, assuming the default session settings, Alignment tab, Left change and right change separated by lines option is enabled. We do not have the ability to determine syntax of inner bracket lines at this time, but we can mark sections like this as one large block.

    Conflict sections are sections where both sides have been changed from the ancestor, and manual intervention is required.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •