<?xml version="1.0" standalone="no"?>
<!-- test 15: test referencing within axes node -->
<mydocument
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://ivoa.org/Quantity MyStdDocument.xsd"
      xmlns:c="http://ivoa.org/CoordinateSystems"
      xmlns:m="http://ivoa.org/Mappings"
      xmlns="http://ivoa.org/Quantity"
>
	<quantity name="ccd countrate observations" size="18">
		<metaData>
			<note>this example shows how to do an image quantity</note>
		</metaData>
                <axesList>
                        <axes name="pixel axes" description="Axes which describe access by pixel location + time" size="3">
                                <quantity name="x" size="3">
                                        <integer width="2"/>
                                        <values>10 11 12</values>
                                </quantity>
                                <quantity name="y" size="3">
                                        <integer width="2"/>
                                        <values>1 2 3</values>
                                </quantity>
                                <quantity qid="time" name="time" size="2">
                                        <coordSystem><c:timeFrame>Some instr. time frame</c:timeFrame></coordSystem>
                                        <units>sec</units>
                                        <float width="3" precision="1"/>
                                        <values>10.1 20.1</values>
                                </quantity>
                        </axes>
                        <axes name="sky axes" description="axes which describe access by sky location + time" size="2">
                                <quantity name="pos" size="3">
                                        <ucd>POS.EQ</ucd>
                                        <coordSystem><c:skyFrame>J2000/ICRS</c:skyFrame></coordSystem>
                                        <vector>
                                            <frame name="RA">
                                                <ucd>pos.eq.ra</ucd>
                                                <units>deg</units>
                                            </frame>
                                            <frame name="Dec">
                                                <ucd>pos.eq.ra</ucd>
                                                <units>deg</units>
                                            </frame>
                                        </vector>
                                        <mapping>
                                        	<wcsmap type="TAN">
                                         		<refvals>131.2181 -31.1284</refvals>
                                         		<refpos>512.1 512.1</refpos>
                                         		<scales>-0.0016 0.0016</scales>
                                         		<rotation>48.3121</rotation>
                                        	</wcsmap>
                                        </mapping>
                                </quantity>
                                <refQuantity qidRef="time"/> <!-- this is same as time axes above --> 
                        </axes>
                </axesList>
                <units>erg cm^-2 sec^-1</units>
                <float width="5" precision="2"/>
                <values>10.12 12.34 20.34 13.87 24.76  5.67 6.80 .7 12.8
                         0.12 12.34 20.34 13.87 24.76  5.67 6.80 .7 12.8
                </values>
        </quantity>
</mydocument>
