From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4723 invoked from network); 25 Aug 2023 08:37:08 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 25 Aug 2023 08:37:08 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EBD41482DE0 for ; Fri, 25 Aug 2023 10:36:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jgTR0ppKWPy2 for ; Fri, 25 Aug 2023 10:36:07 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C2CE8482E5A for ; Fri, 25 Aug 2023 10:35:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0F24D482D4B for ; Fri, 25 Aug 2023 10:35:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Ub3jjekTFyH for ; Fri, 25 Aug 2023 10:35:08 +0200 (CEST) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id B48C4482D4A for ; Fri, 25 Aug 2023 10:35:08 +0200 (CEST) Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4RXCv04kMZz4T for ; Fri, 25 Aug 2023 08:35:08 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4RXCv01Msvz6N for ; Fri, 25 Aug 2023 08:35:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1692952508; bh=nGYAVZXbofDMqsZiuRKAxG0ihDFclfZDj9BpbDow8lo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=M/BRh65h5cLGpu9VyNKhtv37yswqVyI0wAYk8eyTXFZWXxvwqK/mH+ka2WKH++nID J9C/fzz1WQAfmKSOf0u7LnQVW6ISmQIAq0cId2IRlP7WouWKpMLG+j50TbCX1PrwyK pEyQIroD/RSly/9CRYLz4xFp5SpXxhGAr7bZVKzs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1692952508; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h2CJh+AyvORf0RExM39PXvDcWg+aXn4X0W6KgI6lADY=; b=jzfz4Z35jpJfKQBbyokl8a9HvP4PcI1C2mXOgHo3X6U0OCaANAOlCWX6HFI9ivPVCFPsCu SPb6FSXlVIw1mKYDhy7jfVkfpNz8pYF7w5b4rlrH/uxOFisUUVn7q5kSGcL5xQhjj58OeK i+GdBvtCrzt38l8ZXDIFYqvgzhmlm44= ARC-Seal: i=1; s=default; d=freedom.nl; t=1692952508; a=rsa-sha256; cv=none; b=wtOUFzlABIbd0E5pE4W/cYblKgYxH0EQcZ3SU0VY4ATKwnM1X3W7yAFThESUji1OmDAWM7 YDP+QbH2VxEFvyWsVtZEsxMzjoMT7Zi3HBMHv9FWsnw52eZ5DSn7Iv3z2QqqqsoJ+XyegT yiUwHr1gGY/BhvM6QqBiPAAWYPkxPU4= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <734de8f1-e86e-5502-065e-d9bb555eff77@freedom.nl> Date: Fri, 25 Aug 2023 10:35:07 +0200 MIME-Version: 1.0 Content-Language: en-US To: ntg-context@ntg.nl References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: EWEXW2CMVUCHWRGYIIXU3GL3WVBYZGYJ X-Message-ID-Hash: EWEXW2CMVUCHWRGYIIXU3GL3WVBYZGYJ X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: XML: Correct usage of hash symbol in url List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 8/25/2023 10:16 AM, denis.maier@unibe.ch wrote: > Hi, > > I need to process URLs in XML documents differently depending on the target. Thanks to Hans and Thomas I can now deal with the attributes. > Now I need to prefix certain kind of targets with a certain URL (a web viewer for IIIF images in this particular case). The prefix contains a #, which, as a special character seems to cause an error. Adding a double hash seems to work, but those ## will end up in the link URL. How can I properly escape a single #? I've already tried using \Ux{23}, but that won't work either. \# ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________