Subject: [xsl] Resolving QName with XSLT 1.0 From: Chizzolini Stefano <chist@xxxxxx> Date: Wed, 1 Dec 2004 15:34:35 +0100 |
Hi all I'm attempting to construct an xpath expression to select in my xml instance a document element whose category subelement attribute xsi:type matches a QName (say: "eur:invoice"), as follows: <?xml version="1.0" encoding="ISO-8859-1"?> <documents xmlns="http://www.aaa.it/consulta/xdmModel" xmlns:eur="http://www.aaa.it/europa/xdm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <document id="kjsdlkj"> <category xsi:type="eur:invoice"> [...] </category> </document> [...] </documents> My question is: as the QName is not a simple literal (you know: the namespace prefix isn't relevant by itself), how can I be sure that my predicate matches "eur:invoice" as an expanded name ({http://www.aaa.it/europa/xdm}invoice) instead of the arbitrary "eur:invoice" string? Keep in mind that I'm using MSXML4 (XSLT 1.0 support), so it seems not to be available the resolve-QName function described in the XSLT 2.0 spec (http://www.w3.org/TR/xpath-functions/#func-resolve-QName). What could I do in this case? Many thanks Stefano
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] setting up tables differe, Geert Josten | Thread | Re: [xsl] Resolving QName with XSLT, David Carlisle |
RE: [xsl] format <xsl:message> outp, Robert Soesemann | Date | Re: [xsl] Resolving QName with XSLT, David Carlisle |
Month |