⚲
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 (845 Bytes)
Bug #1534
» print_elements.xsl
second transformer's xsl stylesheet -
Andrea Bagnacani
, 2012-05-15 13:27
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"#all"
version=
"2.0"
>
<xsl:output
method=
"text"
omit-xml-declaration=
"yes"
/>
<xsl:variable
name=
"newline"
><xsl:text>


</xsl:text></xsl:variable>
<xsl:template
match=
"/"
>
<xsl:apply-templates/>
<xsl:value-of
select=
"$newline"
/>
</xsl:template>
<!-- processing instructions -->
<xsl:template
match=
"processing-instruction()"
/>
<!-- text -->
<xsl:template
match=
"text()"
/>
<!-- elements -->
<xsl:template
match=
"element()"
>
<xsl:value-of
select=
"$newline"
/>
<xsl:value-of
select=
"name(.)"
/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
3
Next »
(3-3/3)
Loading...