⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (871 Bytes)
Bug #6419
» MatchUnionTest.xslt
Stylesheet -
Adrian Bird
, 2024-05-10 09:01
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"3.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<!-- variable with both nodeA and nodeB at the lowest level -->
<xsl:variable
name=
"multiNodes"
>
<nodes>
<nodeA>
A
</nodeA>
<nodeB>
B
</nodeB>
<nodeA>
A
</nodeA>
<nodeB>
B
</nodeB>
</nodes>
</xsl:variable>
<xsl:template
name=
"mainTemplate"
>
<xsl:apply-templates
select=
"$multiNodes/nodes/*"
/>
</xsl:template>
<xsl:template
match=
"nodeA | dummyNode"
>
<xsl:value-of
select=
"local-name()"
/>
<xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"."
/>
<xsl:text>
:
</xsl:text>
</xsl:template>
<xsl:template
match=
"dummyNode | nodeB"
>
<xsl:value-of
select=
"local-name()"
/>
<xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"."
/>
<xsl:text>
:
</xsl:text>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
Next »
(1-1/2)
Loading...