[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Louis,
Two things. First, your template isn't matching since you don't have the namespaces lined up.
Try writing your template like so:
(Even better would be to put that namespace declaration up at the top of the transform, with the others in the xsl:stylesheet start tag.)
This way, your template will actually match the element in your source.
Second: change your xsl:value-of (which says copy the string value of the node to output) to xsl:copy-of (not xsl:copy). xsl:copy-of makes a copy of the node (what's called a "deep copy", with all attributes, descendants etc. intact).
At 11:08 AM 5/8/2003, you wrote:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] problem with embedded svg in XML being parsed out by XSL
Subject: Re: [xsl] problem with embedded svg in XML being parsed out by XSL From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 08 May 2003 16:13:03 -0400 |
Louis,
Two things. First, your template isn't matching since you don't have the namespaces lined up.
Try writing your template like so:
<xsl:template match='svg:svg' xmlns:svg="http://www.w3.org/2000/svg"> ... </xsl:template>
(Even better would be to put that namespace declaration up at the top of the transform, with the others in the xsl:stylesheet start tag.)
This way, your template will actually match the element in your source.
Second: change your xsl:value-of (which says copy the string value of the node to output) to xsl:copy-of (not xsl:copy). xsl:copy-of makes a copy of the node (what's called a "deep copy", with all attributes, descendants etc. intact).
I hope that helps, Wendell
At 11:08 AM 5/8/2003, you wrote:
The XSL looks like:
<xsl:template match='svg'> <fo:block space-before.optimum="2pt" space-after.optimum="2pt"> TEST <fo:instream-foreign-object> <xsl:value-of select="."/> <!--<xsl:copy/>--><!--also tried this--> </fo:instream-foreign-object> </fo:block> </xsl:template>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] problem with embedded svg, David Carlisle | Thread | Re: [xsl] problem with embedded svg, Louis . Masters |
RE: [xsl] Scope of variables, me | Date | Re: [xsl] Scope of variables, Mike Haarman |
Month |