xsl-output only visible in Xopus
- 1 reply.
- This is not yet resolved.
- This question was started by Micha.
- Last post by Carl.
|
user
January 17th 2010
|
Hi,
In order to improve the user-experience I want to include some of the Xopus functionality inline on the page. For example, it would be nice for a list-type of element to have inline buttons to manipulate elements in the list. Yet, I want to use a single xsl file for editing in Xopus and displaying HTML. Is something like this possible?: <xsl:template match="element"> <div> <xsl:choose> <xsl:when test="inXopus()"> We're in Xopus! </xsl:when> <xsl:otherwise> not in Xopus </xsl:otherwise> </xsl:choose> </div> </xsl:template> When editing in xopus, you should see: "We're in Xopus!" When transformed with other means, you should see: "not in xopus" Thanks in advance. |
|
Xopus Team
January 25th 2010
|
If you declare the <xsl:param name="xopus"/> to your XSL, you can test for the value 'true' to see if you are in Xopus or not.
|
- Support
- › Forum
- › How To ...
- › xsl-output only visible in Xopus
React
Write a comment