|
Subject: [xsl] namespace problem From: "Ruud Grosmann r.grosmann@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 3 Sep 2014 14:28:37 -0000 |
<doc> <p><Char>hello</Char><Char> there</Char></p> </doc>
<xsl:template match="/">
<document>
<xsl:apply-templates/>
</document>
</xsl:template> <xsl:template match="p">
<xsl:variable name='blip'>
<xsl:apply-templates />
</xsl:variable><xsl:apply-templates select='$blip' mode='pass2' /> </xsl:template>
<xsl:template match="Char">
<char><xsl:apply-templates /></char>
</xsl:template> <xsl:template match='char' mode='#all'>
<c><xsl:apply-templates /></c>
</xsl:template>
</xsl:transform><?xml version="1.0" encoding="utf-8"?> <document xmlns="http://www.w3.org/1999/xhtml"> <c>hello</c> <c> there</c> </document>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="2.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs xsl">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" /><?xml version="1.0" encoding="utf-8"?> <document xmlns="http://www.w3.org/1999/xhtml"> hello there </document>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How can I change the attr, varun bhatnagar varu | Thread | Re: [xsl] namespace problem, Ruud Grosmann r.gros |
| Re: [xsl] How can I change the attr, varun bhatnagar varu | Date | Re: [xsl] namespace problem, Ruud Grosmann r.gros |
| Month |