Questions tagged [canonicalization]

is a process for converting data that has more than one possible representation into a "standard", "normal", or canonical form.

As per Wikipedia:

In computer science, canonicalization (abbreviated c14n, where 14 represents the number of letters between the C and the N; also sometimes standardization or normalization) is a process for converting data that has more than one possible representation into a "standard", "normal", or canonical form. This can be done to compare different representations for equivalence, to count the number of distinct data structures, to improve the efficiency of various algorithms by eliminating repeated calculations, or to make it possible to impose a meaningful sorting order.

197 questions
1
vote
1 answer

XML Canonicalization lexicographical ordering

There are official test cases for XML canonicalization which can be found here: Test cases for Canonical XML 2.0 One of them looks like this: ]>
Zasha
  • 67
  • 1
  • 8
1
vote
1 answer

Tumblr Blogs Canonicalisation

I have created two Tumblr blogs using my account. Say gamesplay.tumblr.com & playgames.tumblr.com. Since I cannot use 301 redirect, Is there a way to implement rel=canonical to merge the two new blogs?
PNG
  • 53
  • 1
  • 6
1
vote
1 answer

How to compare HTML markup in Golang?

I'm trying to come up with a test suite which checks HTML fragments/files are canonically equivalent to one another. I was surprised to see that if I parse the same string or file, the https://godoc.org/golang.org/x/net/html#Node was comparing as…
hendry
  • 9,725
  • 18
  • 81
  • 139
1
vote
1 answer

Is pushing a canonical link into the head with JavaScript acceptable for Google

So basically I have a site where occasionally I setup a "vanity" url for web campaigns or product literature: i.e. http://www.example.com/campaign-URL links to the same page as http://www.example.com/normal-site-URL I set this up with a rewrite in…
Chuck Finley
  • 295
  • 1
  • 4
  • 12
1
vote
1 answer

Normalize in canonical form two XML files in Python

I have two XML files and I need to check that they contains the same exact information. Regardless of tag or attribute order. For instance this two XML files should be equals: test1.xml
Natim
  • 17,274
  • 23
  • 92
  • 150
1
vote
0 answers

Need Help in my website IP Canonicalization .htaccess

i have searched the whole internet to find solution my website is www.hrxlevels.tk and ip address associated with website is this 31.170.163.33 and want the .htaccess for ip to redirect to domain # Do not remove this line, otherwise mod_rewrite…
Hamza Raza
  • 11
  • 3
1
vote
1 answer

Amazon Web Services(AWS) Lambda Canonicalization Error for Turkish Language

I am facing canonicalization problem while using aws-android-sdk-lambda from Android phone.While function call it somehow uses phone's language, btw it is Turkish, so I get SigningKeyDoesntMatchException. If I change phone language to English, it…
1
vote
2 answers

handling carriage return in canonicalization with java

I am trying to canonicalize an html text node by com/sun/org/apache/xml/internal/security/c14n/Canonicalizer.java class. My input file has carriage return and a line feed at the end. Upon canonicalization I expect to see the carriage return…
artsince
  • 1,022
  • 20
  • 36
1
vote
1 answer

Why is my old URL still active?

I have a ecommerce site with hundreds of products. I recently changed permalinks and their base. Using Wordpress and Woocommerce plugin, I removed /shop/%product-category% from the URL. However, my old URLs are still active. Check out the…
1
vote
1 answer

How perform Inclusive Canonicalization of XML in pure JavaScript?

Is there any short, dependencies free, lightweight code for such canonicalization? Also, I tried to find open source implementations but found only irrelevant ones. I saw similar question but asker looking for exclusive canonicalization and answerer…
user2104560
1
vote
1 answer

Fixing IP Canonicalization errors

I am trying to fix my IP Canonicalization error, but I guess i am doing something wrong. My IP is suppose 123.45.678.101 What I am trying, however I am having no luck. Can anyone give me a hand with my code? RewriteCond %{HTTP_HOST}…
rohit narang
  • 135
  • 10
1
vote
1 answer

How to Canonicalize a Stax XML object

i want to Canonicalize a Stax object, the program it's doing it with DOM, but dom can't manage big XML documents (like 1GB), so STAX it's the solution. The Code that i have it's: File file=new…
Enrique San Martín
  • 2,202
  • 7
  • 30
  • 51
1
vote
1 answer

ASP.NET MVC 3 use of Canonicalize package and IIS SEO Toolkit

I have an ASP.NET MVC 3 application, ran the IIS SEO toolkit on it and got "The page contains multiple canonical formats." error caused by the site being accessable with or without a trailing slash. After searching for advice I found the…
sharchee
  • 11
  • 3
1
vote
2 answers

How to find multiple minimal/canonical covers or rearrange them to find new ones

I have a relation and function dependencies as follows: R = (A, B, C, D, E) F = (A -> B C, B C -> D, A C -> D E) Now I am going to compute the minimal/canonical cover using this video. So firstly I check if I have singleton right-hand sides…
1
vote
2 answers

Google Analytics: How to merge canonical URLs for historical data

I have a single-page online app which relies on query strings. Google Analytics tracking was added, however canonical meta wasn't added until a few days later, so now Analytics is showing several entries for the same page because of a difference in…
Rich Jenks
  • 1,723
  • 5
  • 19
  • 32