We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The test should cover as <slot>def value</slot> as named one <slot name=x>X value</slot>
<slot>def value</slot>
<slot name=x>X value</slot>
The text was updated successfully, but these errors were encountered:
Substitution of <slot> in template
<slot>
<slot name="xxx">yyy</slot>
<b slot="xxx">zzz</b>
<xsl:copy-of select="//payload/*[@slot='xxx']"/>
yyy
<slot name="">yyy</slot>
<b slot="">zzz</b>
<xsl:copy-of select="//payload/*[@slot='']"/>
<xsl:copy-of select="//payload/*[not(@slot)]"/>
<slot>yyy</slot>
The template is XSLT dom with SLOT elements, those have to be replaced with content which would behave according to the table ^^.
replace the SLOT with conditional ( by payload ) render of payload or SLOT content. I.e.
<!-- slot name=xxx --> <xsl:choose> <xsl:when test="//payload/*[@slot='xxx']"> <xsl:copy-of select="//payload/*[@slot='xxx']"/> </xsl:when> <xsl:otherwise> <!-- move SLOT content there --> yyy </xsl:otherwise> </xsl:choose> <!-- slot name= --> <!-- slot without name attribute same as with --> <xsl:choose> <xsl:when test="//payload/*[@slot='']"> <xsl:copy-of select="//payload/*[@slot='']"/> <xsl:copy-of select="//payload/*[not(@slot)]"/> </xsl:when> <xsl:otherwise> <!-- move SLOT content there --> yyy </xsl:otherwise> </xsl:choose>
Sorry, something went wrong.
sashafirsov
No branches or pull requests
The test should cover as
<slot>def value</slot>
as named one<slot name=x>X value</slot>
The text was updated successfully, but these errors were encountered: