⚲
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
»
Saxon-CE
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Download (1.05 KB)
Bug #1640
» test_br_2.xsl
Manfred Staudinger
, 2012-10-31 16:08
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform
version=
"2.0"
xmlns:html=
"http://www.w3.org/1999/xhtml"
xmlns:ixsl=
"http://saxonica.com/ns/interactiveXSLT"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:dr=
"http://documenta.rudolphina.org/"
extension-element-prefixes=
"ixsl"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:template
match=
"@* | node()"
mode=
"#all"
>
<xsl:copy>
<xsl:apply-templates
select=
"@* | node()"
mode=
"#current"
/>
</xsl:copy>
</xsl:template>
<xsl:template
name=
"main"
>
<xsl:result-document
href=
"#htmlbody"
method=
"ixsl:replace-content"
>
<xsl:message
select=
"count(ixsl:page()/*/*/*[@id='htmlbody']/*), name(ixsl:page()/*/*/*[@id='htmlbody']/*[1])"
/>
<xsl:apply-templates
select=
"ixsl:page()/*/*/*[@id='htmlbody']/*"
mode=
"init"
/>
</xsl:result-document>
</xsl:template>
<xsl:template
match=
"text()[contains(., '#')]"
mode=
"init"
>
<xsl:message
select=
"name(..)"
/>
<xsl:value-of
select=
"substring-before(., '#')"
/>
<xsl:element
name=
"br"
/>
<xsl:value-of
select=
"substring-after(., '#')"
/>
</xsl:template>
</xsl:transform>
« Previous
1
2
3
Next »
(3-3/3)
Loading...