Subject: Re: [xsl] XPath Expression in XSL Template Will Not Return Documen t Element with Attributesþ From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 09 Feb 2009 18:31:19 -0500 |
Listmembers, I have a problem creating an appropriate XPath expression in a XSL file, and have been unable to find a solution. Here the Scenario: I have an xml file output from asp.net xmlserializer class. It outputs the Document Element "Catalog" with three attributes pertaining to XML namespaces.
the catalog tag looks like this (markup removed):
Catalog
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Cheers, Wendell
I have created an XSL file to restructure the information for use in a ASP.NET GridView Control.
xsl:template match="/" xsl:apply-templates select="Catalog" xsl:template>
It works, but only if I remove the attributes from the Element. I need to know how to format the xsl:template match="Catalog" xpath expression in the XSL file to match that tag, even if it has attributes.
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath Expression in XSL T, Michael Kay | Thread | RE: [xsl] XPath Expression in XSL T, Joshua Glenn |
RE: [xsl] XPath Expression in XSL T, Michael Kay | Date | RE: [xsl] XPath Expression in XSL T, Joshua Glenn |
Month |