[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xpath Syntax Issue

Subject: Re: Xpath Syntax Issue
From: Nathan Tallman <ntallman@xxxxxxxxx>
Date: Sun, 24 Jun 2012 15:07:37 -0400
Re:  Xpath Syntax Issue
Yes, I was getting a different result, but I think I've figured out
the problem. I had both 32 and 64 bit versions of libxslt installed.
When I deleted the 32 bit version, the transformation completes
successfully.

Thanks for all the help troubleshooting!

Nathan

On Sun, Jun 24, 2012 at 12:35 PM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> Nathan Tallman wrote:
>>
>> Sorry, here's my XSLT (remove.xsl):
>>
>> <?xml version="1.0"?>
>> <xsl:stylesheet version="1.0"
>>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>     xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9"
>>     exclude-result-prefixes="s"
>>>
>>>
>>
>>     <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
>>
>>     <xsl:strip-space elements="*"/>
>>
>>     <!-- Standard copy -->
>>     <xsl:template match="*">
>>         <xsl:copy>
>>             <xsl:copy-of select="@*"/>
>>             <xsl:apply-templates/>
>>         </xsl:copy>
>>     </xsl:template>
>>
>>     <xsl:template match="s:urlset/s:url[normalize-space(s:loc) = 'URL']"/>
>>
>> </xsl:stylesheet>
>>
>> XML Snippet (sitemap1.xml):
>> <?xml version="1.0" encoding="UTF-8"?>
>> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
>>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>      xsi:schemaLocation="
>>      http://www.sitemaps.org/schemas/sitemap/0.9
>>      http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
>>
>>      <url>
>>           <loc>URL</loc>
>>           <lastmod>2012-06-23T13:37:27+00:00</lastmod>
>>           <changefreq>monthly</changefreq>
>>           <priority>1.0</priority>
>>      </url>
>>      ....
>> </urlset>
>>
>> Command used in Linux:
>> xsltproc -o sitemapb.xml remove.xsl sitemap1.xml
>
>
> When I run xsltproc here on the command line with your samples I get
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>    http://www.sitemaps.org/schemas/sitemap/0.9
>  http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
>     ....
> </urlset>
>
> so that element has been removed.
>
> Are you getting a different result?
>
> I tried with
>
> Using libxml 20707, libxslt 10126 and libexslt 815
> xsltproc was compiled against libxml 20706, libxslt 10126 and libexslt 815
> libxslt 10126 was compiled against libxml 20706
> libexslt 815 was compiled against libxml 20706
>
> on Windows.
>
>
>
>
> --
>
>        Martin Honnen --- MVP Data Platform Development
>        http://msmvps.com/blogs/martin_honnen/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.