Subject: Re: [xsl] How to force prefixes instead of expanded qnames? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 17 Aug 2010 22:32:30 +0100 |
Michael Kay Saxonica
Hi there!
I guess this must have come up before, but I can't find it.
I get this kind of a result which works fine, but is a bit more difficult to read than necessary:
<Repository xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns="http://www.openarchives.org/OAI/2.0/static-repository" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mpx="http://www.mpx.org/mpx" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/static-repository http://www.openarchives.org/OAI/2.0/static-repository.xsd"> ... <oai:metadata> <mpx:multimediaobjekt xsi:schemaLocation="http://www.mpx.org/mpx file:/c:/cygwin/home/Mengel/usr/levelup/lib/mpx-lvl2.v2.xsd" exportdatum="2010-04-19T16:39:14" mulId="7216"> <bearbDatum xmlns="http://www.mpx.org/mpx">12.12.2005 14:32:13</bearbDatum> <multimediaFarbe xmlns="http://www.mpx.org/mpx">farbig</multimediaFarbe> <multimediaFormat xmlns="http://www.mpx.org/mpx">RF (6x6 cm)</multimediaFormat> ...
I would prefer having the namespace written as a prefix like in <mpx:multimediaobjekt>.
This is an xslt 2 transformation and I am using copy-of to create those elements where I don't like the output.
Thanks! Maurice
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to force prefixes instead, Maurice Mengel | Thread | Re: [xsl] How to force prefixes ins, Maurice Mengel |
[xsl] How to force prefixes instead, Maurice Mengel | Date | Re: [xsl] How to force prefixes ins, Maurice Mengel |
Month |