Subject: Re: [xsl] namespace problem From: "Ruud Grosmann r.grosmann@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 4 Sep 2014 07:15:21 -0000 |
You need to match a document that has elements <doc>, <p>, <Char> that are in *no namespace*, where the name has no namespace name, just a locsl name. Your output document is supposed to be in the namespace " http://www.w3.org/1999/xhtml", and you'd like to use the shortened notation known as *default namespace*. In the 2nd version of your XSLT you introduce a default namespace, and, sure enough, the matches written without a prefix aren't in the no namespace ghetto any more.
You may, however, at any time cancel the definition for the default namespace by writing
xmlns=""
and everything below that has no prefix hasn't a namespace name either.
<xsl:template xmlns='' match='char' mode='#all'> <c><xsl:apply-templates /></c> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] namespace problem, Wolfgang Laun wolfga | Thread | Re: [xsl] namespace problem, Wolfgang Laun wolfga |
Re: [xsl] namespace problem, Wolfgang Laun wolfga | Date | [xsl] Replacing an apostrophe in a , Craig Sampson craig. |
Month |