Custom merge rules?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keith204
    New User
    • Oct 2010
    • 2

    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">
    [COLOR="red"] <xsl:if test="/bogus/@val='hello'">
      <xsl:call-template name="dosomething"/>
     </xsl:if>[/COLOR]
    </xsl:template>
    
    <xsl:template name="bar">
    </xsl:template>
    
    <xsl:template name="baz">
    </xsl:template>
    Merged.xsl
    Code:
    [COLOR="red"]<!--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 -->[/COLOR]
    
    [COLOR="red"] <xsl:if test="/bogus/@val='hello'">
      <xsl:call-template name="dosomething"/>
     </xsl:if>[/COLOR]
    
    <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
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #2
    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

    Comment

    Working...