|
Subject: [xsl] xspec: testing template matching document root From: "Ruud Grosmann r.grosmann@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 8 Mar 2017 09:15:52 -0000 |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<document>
<xsl:apply-templates/>
</document>
</xsl:template> <xsl:template match="phrases">
<xsl:apply-templates/>
</xsl:template> <xsl:template match="phrase">
<phrase><xsl:apply-templates/></phrase>
</xsl:template>
</xsl:stylesheet><x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" stylesheet="d.xslt"> <x:scenario label="When processing a list of phrases"> <x:context> <phrases> <phrase>Hello!</phrase> </phrases> </x:context> <!-- check the result --> <x:expect label="document element should be added"> <document> <phrase status="same">Hello!</phrase> </document> </x:expect> </x:scenario> </x:description>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] sort on one key - duplica, Michael Kay mike@xxx | Thread | [xsl] [ANN] Balisage Submissions du, Tommie Usdin btusdin |
| Re: [xsl] whitespace normalization , Flynn, Peter pflynn@ | Date | [xsl] [ANN] Balisage Submissions du, Tommie Usdin btusdin |
| Month |