|
Subject: Aw: [xsl] Help to prevent copying of prefix From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 8 Mar 2026 19:36:12 -0000 |
Basically you need to push those nodes through a template that strips the prefix, a copy doesn't allow you to get rid of the prefix. -- Gesendet mit der GMX Mail App Am 08.03.26, 20:29 schrieb "Schimon Jehudah sch@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>: Greetings. I am attempting to copy the XHTML content of element atom:summary without the prefix of "xhtml", by declaring the XML Namespace of "xhtml" at the element which contains it. Content ------- <atom:summary type="xhtml"> <xhtml:div> <xhtml:p> We are happy to announce that <xhtml:a href="gemini://syndikate.i2p">Syndikate</xhtml:a> was publicized. <xhtml:p> </xhtml:div> </atom:summary> XSLT ---- <p xmlns="http://www.w3.org/1999/xhtml" class="summary" type="xhtml"> <xsl:copy-of select="$summary/xhtml:*"/> </p> Result ------ <p xmlns="http://www.w3.org/1999/xhtml" class="summary" type="xhtml"> <xhtml:div> <xhtml:p> We are happy to announce that <xhtml:a href="gemini://syndikate.i2p">Syndikate</xhtml:a> was publicized. <xhtml:p> </xhtml:div> </p> Desired result -------------- <p xmlns="http://www.w3.org/1999/xhtml" class="summary" type="xhtml"> <div> <p> We are happy to announce that <a href="gemini://syndikate.i2p">Syndikate</a> was publicized. <p> </div> </p> Note ---- Directive exclude-result-prefixes="xhtml" did not work for me, or I executed it wrongly. I would appreciate any help. Kind reagrds, Schimon XSL-List info and archiveEasyUnsubscribe (by email)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Help to prevent copying of pr, Schimon Jehudah sch@ | Thread | Re: Aw: [xsl] Help to prevent copyi, Graydon graydon@xxxx |
| [xsl] Help to prevent copying of pr, Schimon Jehudah sch@ | Date | Re: Aw: [xsl] Help to prevent copyi, Graydon graydon@xxxx |
| Month |