Subject: Re: [xsl] How to insert a snippet of XSD into HTML using serialize(), without the result containing a bunch of namespaces? Way to suppress the output of namespace declarations? From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 12 Jun 2015 13:17:04 -0000 |
In my XSLT, I am using the new serialize function to output the Title element:
<xsl:value-of select="serialize(//xs:element[@name eq 'Title'])" />
However, when I view the HTML document in a browser, I see a bunch of namespace declarations bundled with the Title element:
I don't want all those namespace declarations. How do I omit them?
I tried adding a serialization parameter to the serialize function:
<xsl:value-of select="serialize((//xs:element[@name eq 'Title'], $output-serialization-parameters)" />
That had no effect.
-- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to insert a snippet o, Martin Honnen martin | Thread | Re: [xsl] How to insert a snippet o, Costello, Roger L. c |
Re: [xsl] How to insert a snippet o, Martin Honnen martin | Date | Re: [xsl] How to insert a snippet o, Costello, Roger L. c |
Month |