<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<InquireManagedElementResponse>
			<me>
				<meNm>
					<xsl:value-of select="INQBTERP/TEA"/>
				</meNm>
				<xsl:for-each select="INQBTERP/BTEATTR">
					<meAttrs>
						<xsl:for-each select="SWVSN">
							<version>
								<xsl:value-of select="."/>
							</version>
						</xsl:for-each>
						<xsl:for-each select=".">
							<ttAdditionalInfo>
								<xsl:for-each select="AID">
									<aid>
										<xsl:value-of select="."/>
									</aid>
								</xsl:for-each>
								<xsl:for-each select="AIDPFX">
									<aidPrefix>
										<xsl:value-of select="."/>
									</aidPrefix>
								</xsl:for-each>
								<xsl:for-each select="ALTITUDE">
									<altitude>
										<xsl:value-of select="."/>
									</altitude>
								</xsl:for-each>
								<xsl:for-each select="CLLI">
									<clli>
										<xsl:value-of select="."/>
									</clli>
								</xsl:for-each>
								<xsl:for-each select="../BTETYPE">
									<deviceType>
										<xsl:value-of select="."/>
									</deviceType>
								</xsl:for-each>
								<xsl:for-each select="HWVSN">
									<hardwareVersion>
										<xsl:value-of select="."/>
									</hardwareVersion>
								</xsl:for-each>
								<xsl:for-each select="INDEXNUM">
									<indexNum>
										<xsl:value-of select="."/>
									</indexNum>
								</xsl:for-each>
								<xsl:for-each select="RT">
									<installRoute>
										<xsl:value-of select="."/>
									</installRoute>
								</xsl:for-each>
								<xsl:for-each select="IPADDR">
									<ipAddr>
										<xsl:value-of select="."/>
									</ipAddr>
								</xsl:for-each>
								<xsl:for-each select="LAT">
									<latitude>
										<xsl:value-of select="."/>
									</latitude>
								</xsl:for-each>
								<xsl:for-each select="LONG">
									<longitude>
										<xsl:value-of select="."/>
									</longitude>
								</xsl:for-each>
								<xsl:for-each select="MACID">
									<macId>
										<xsl:value-of select="."/>
									</macId>
								</xsl:for-each>
								<xsl:for-each select="MODEL">
									<model>
										<xsl:value-of select="."/>
									</model>
								</xsl:for-each>
								<xsl:for-each select="ACCPTP">
									<numAccPorts>
										<xsl:value-of select="."/>
									</numAccPorts>
								</xsl:for-each>
								<xsl:for-each select="DUALPTP">
									<numDualPorts>
										<xsl:value-of select="."/>
									</numDualPorts>
								</xsl:for-each>
								<xsl:for-each select="NETPTP">
									<numNetPorts>
										<xsl:value-of select="."/>
									</numNetPorts>
								</xsl:for-each>
								<xsl:for-each select="ONTSRC">
									<ontSource>
										<xsl:value-of select="."/>
									</ontSource>
								</xsl:for-each>
								<xsl:for-each select="PDGONT">
									<pendingONT>
										<xsl:value-of select="."/>
									</pendingONT>
								</xsl:for-each>
								<xsl:for-each select="PRIMONT">
									<primaryONT>
										<xsl:value-of select="."/>
									</primaryONT>
								</xsl:for-each>
								<xsl:for-each select="PRQ">
									<protReqIndicator>
										<xsl:value-of select="."/>
									</protReqIndicator>
								</xsl:for-each>
								<xsl:for-each select="RELAYRACK">
									<relayRack>
										<xsl:value-of select="."/>
									</relayRack>
								</xsl:for-each>
								<xsl:for-each select="RMK">
									<remark>
										<xsl:value-of select="."/>
									</remark>
								</xsl:for-each>
								<xsl:for-each select="SERIALNO">
									<serialNumber>
										<xsl:value-of select="."/>
									</serialNumber>
								</xsl:for-each>
								<xsl:for-each select="STRLOC">
									<streetLocation>
										<xsl:value-of select="."/>
									</streetLocation>
								</xsl:for-each>
								<xsl:for-each select="TPR">
									<taperCode>
										<xsl:value-of select="."/>
									</taperCode>
								</xsl:for-each>
								<xsl:for-each select="IND">
									<terminalIndicator>
										<xsl:value-of select="."/>
									</terminalIndicator>
								</xsl:for-each>
								<xsl:for-each select="TARGID">
									<tid>
										<xsl:value-of select="."/>
									</tid>
								</xsl:for-each>
								<xsl:for-each select="TMPSERNO">
									<tmpSerialNumber>
										<xsl:value-of select="."/>
									</tmpSerialNumber>
								</xsl:for-each>
								<xsl:for-each select="USERTYPE">
									<userDeviceType>
										<xsl:value-of select="."/>
									</userDeviceType>
								</xsl:for-each>
							</ttAdditionalInfo>
						</xsl:for-each>
					</meAttrs>
				</xsl:for-each>
				<xsl:for-each select="INQBTERP/EHLIST">
					<ehList>
						<xsl:for-each select="EH">
							<eh>
								<ehNmP>
									<xsl:value-of select="EHNMP"/>
								</ehNmP>
								<ehAttrs>
									<xsl:for-each select="EHATTR/USERTYPE">
										<equipmentHolderType>
											<xsl:value-of select="."/>
										</equipmentHolderType>
									</xsl:for-each>
								</ehAttrs>
								<xsl:for-each select="EQUIP">
									<equip>
										<eqNm>1</eqNm>
									</equip>
								</xsl:for-each>
								<xsl:for-each select="PTPLIST">
									<PTPList>
										<xsl:when test="PTP">
											<xsl:for-each select="PTP">
												<PTP>
													<ptpNmP>
														<xsl:value-of select="PTPNMP"/>
													</ptpNmP>
												</PTP>
											</xsl:for-each>
										</xsl:when>
										<xsl:otherwise/>
										<xsl:for-each select="PTP">
											<PTP>
												<xsl:for-each select="PTPNMP">
													<ptpNmP>
														<xsl:value-of select="."/>
													</ptpNmP>
												</xsl:for-each>
												<xsl:for-each select="PTPATTR">
													<PTPAttrs>
														<type>TPT_PTP</type>
														<direction>D_BIDIRECTIONAL</direction>
														<xsl:for-each select=".">
															<ttAdditionalInfo>
																<xsl:for-each select="DEFTP">
																	<limitation>
																		<xsl:value-of select="."/>
																	</limitation>
																</xsl:for-each>
																<xsl:for-each select="LTS">
																	<lineTerminalStatus>
																		<xsl:value-of select="."/>
																	</lineTerminalStatus>
																</xsl:for-each>
																<xsl:for-each select="MAXONT">
																	<maxONT>
																		<xsl:value-of select="."/>
																	</maxONT>
																</xsl:for-each>
																<xsl:for-each select="PDGSO">
																	<pendingSO>
																		<xsl:value-of select="."/>
																	</pendingSO>
																</xsl:for-each>
																<xsl:for-each select="ROLE">
																	<role>
																		<xsl:value-of select="."/>
																	</role>
																</xsl:for-each>
																<xsl:for-each select="PTPSTAT">
																	<status>
																		<xsl:value-of select="."/>
																	</status>
																</xsl:for-each>
															</ttAdditionalInfo>
														</xsl:for-each>
													</PTPAttrs>
												</xsl:for-each>
											</PTP>
										</xsl:for-each>
									</PTPList>
								</xsl:for-each>
							</eh>
						</xsl:for-each>
					</ehList>
				</xsl:for-each>
				<xsl:for-each select="INQBTERP/PTPLIST">
					<PTPList>
						<xsl:for-each select="PTP">
							<PTP>
								<ptpNm>
									<xsl:value-of select="PTPNM"/>
								</ptpNm>
								<ptpNmRange>
									<xsl:value-of select="PTPRNG"/>
									<low>
										<xsl:value-of select="PTPRNG/PTPLO"/>
									</low>
									<high>
										<xsl:value-of select="PTPRNG/PTPHI"/>
									</high>
								</ptpNmRange>
								<xsl:for-each select="PTPATTR">
									<PTPAttrs>
										<type>TPT_PTP</type>
										<direction>D_BIDIRECTIONAL</direction>
										<xsl:for-each select=".">
											<ttAdditionalInfo>
												<xsl:for-each select="DEFTP">
													<limitation>
														<xsl:value-of select="."/>
													</limitation>
												</xsl:for-each>
												<xsl:for-each select="LTS">
													<lineTerminalStatus>
														<xsl:value-of select="."/>
													</lineTerminalStatus>
												</xsl:for-each>
												<xsl:for-each select="MAXONT">
													<maxONT>
														<xsl:value-of select="."/>
													</maxONT>
												</xsl:for-each>
												<xsl:for-each select="PDGSO">
													<pendingSO>
														<xsl:value-of select="."/>
													</pendingSO>
												</xsl:for-each>
												<xsl:for-each select="ROLE">
													<role>
														<xsl:value-of select="."/>
													</role>
												</xsl:for-each>
												<xsl:for-each select="PTPSTAT">
													<status>
														<xsl:value-of select="."/>
													</status>
												</xsl:for-each>
											</ttAdditionalInfo>
										</xsl:for-each>
									</PTPAttrs>
								</xsl:for-each>
							</PTP>
						</xsl:for-each>
					</PTPList>
				</xsl:for-each>
				<xsl:for-each select="INQBTERP/NTCONLST">
					<netTopLinkList>
						<rate>LR_PHYSICAL_OPTICAL</rate>
						<xsl:for-each select="TCON">
							<topLink>
								<aEndTPRelative>
									<xsl:for-each select="APTPNM">
										<ptpNm>
											<xsl:value-of select="."/>
										</ptpNm>
									</xsl:for-each>
								</aEndTPRelative>
								<xsl:for-each select="APTPRNG">
									<aEndTPRange>
										<low>
											<xsl:value-of select="PTPLO"/>
										</low>
										<high>
											<xsl:value-of select="PTPHI"/>
										</high>
									</aEndTPRange>
								</xsl:for-each>
								<xsl:for-each select="TCONATTR">
									<topLinkAttrs>
										<direction>CD_BI</direction>
										<zEndTPRelative>
											<xsl:for-each select="ZBTE/ZPTPNM">
												<ptpNm>
													<xsl:value-of select="."/>
												</ptpNm>
											</xsl:for-each>
										</zEndTPRelative>
										<xsl:for-each select="ZBTE/ZPTPRNG">
											<zEndTPRange>
												<low>
													<xsl:value-of select="PTPLO"/>
												</low>
												<high>
													<xsl:value-of select="PTPHI"/>
												</high>
											</zEndTPRange>
										</xsl:for-each>
										<xsl:for-each select="FIBER">
											<ttAdditionalInfo>
												<xsl:value-of select="."/>
												<xsl:for-each select="CABLE">
													<cable>
														<xsl:value-of select="."/>
													</cable>
												</xsl:for-each>
												<xsl:for-each select="LENGTH">
													<length>
														<xsl:value-of select="."/>
													</length>
												</xsl:for-each>
												<xsl:for-each select="LOSS">
													<loss>
														<xsl:value-of select="."/>
													</loss>
												</xsl:for-each>
												<xsl:for-each select="STRAND">
													<strand>
														<xsl:value-of select="."/>
													</strand>
												</xsl:for-each>
												<xsl:for-each select="STRANDRNG">
													<strandRange>
														<low>
															<xsl:value-of select="STRANDLO"/>
														</low>
														<high>
															<xsl:value-of select="STRANDHI"/>
														</high>
													</strandRange>
												</xsl:for-each>
												<aEndTPRole>NETWORK</aEndTPRole>
												<xsl:for-each select="../ZBTE/ZBTETYPE">
													<zEndTPDeviceType>
														<xsl:value-of select="."/>
													</zEndTPDeviceType>
												</xsl:for-each>
											</ttAdditionalInfo>
										</xsl:for-each>
									</topLinkAttrs>
								</xsl:for-each>
							</topLink>
						</xsl:for-each>
					</netTopLinkList>
				</xsl:for-each>
				<xsl:for-each select="INQBTERP/ATCONLST">
					<accTopLinkList>
						<rate>LR_PHYSICAL_OPTICAL</rate>
						<xsl:for-each select="TCON">
							<topLink>
								<xsl:for-each select="APTPNM">
									<aEndTPRelative>
										<xsl:for-each select=".">
											<ptpNm>
												<xsl:value-of select="."/>
											</ptpNm>
										</xsl:for-each>
									</aEndTPRelative>
								</xsl:for-each>
								<xsl:for-each select="APTPRNG">
									<aEndTPRange>
										<low>
											<xsl:value-of select="PTPLO"/>
										</low>
										<high>
											<xsl:value-of select="PTPHI"/>
										</high>
									</aEndTPRange>
								</xsl:for-each>
								<xsl:for-each select="TCONATTR">
									<topLinkAttrs>
										<direction>CD_BI</direction>
										<xsl:for-each select="ZBTE/ZPTPNM">
											<zEndTPRelative>
												<ptpNm>
													<xsl:value-of select="."/>
												</ptpNm>
											</zEndTPRelative>
										</xsl:for-each>
										<xsl:for-each select="ZBTE/ZPTPRNG">
											<zEndTPRange>
												<low>
													<xsl:value-of select="PTPLO"/>
												</low>
												<high>
													<xsl:value-of select="PTPHI"/>
												</high>
											</zEndTPRange>
										</xsl:for-each>
										<xsl:for-each select="FIBER">
											<ttAdditionalInfo>
												<xsl:for-each select="CABLE">
													<cable>
														<xsl:value-of select="."/>
													</cable>
												</xsl:for-each>
												<xsl:for-each select="LENGTH">
													<length>
														<xsl:value-of select="."/>
													</length>
												</xsl:for-each>
												<xsl:for-each select="LOSS">
													<loss>
														<xsl:value-of select="."/>
													</loss>
												</xsl:for-each>
												<xsl:for-each select="STRAND">
													<strand>
														<xsl:value-of select="."/>
													</strand>
												</xsl:for-each>
												<xsl:for-each select="STRANDRNG">
													<strandRange>
														<low>
															<xsl:value-of select="STRANDLO"/>
														</low>
														<high>
															<xsl:value-of select="STRANDHI"/>
														</high>
													</strandRange>
												</xsl:for-each>
												<aEndTPRole>ACCESS</aEndTPRole>
											</ttAdditionalInfo>
										</xsl:for-each>
									</topLinkAttrs>
								</xsl:for-each>
							</topLink>
						</xsl:for-each>
					</accTopLinkList>
				</xsl:for-each>
				<xsl:for-each select="INQBTERP/LINKLIST">
					<netSNCList>
						<rate>LR_PON</rate>
						<SNC>
							<xsl:for-each select="LINK">
								<aEndRelative>
									<xsl:for-each select="APTPNM">
										<ptpNm>
											<xsl:value-of select="."/>
										</ptpNm>
									</xsl:for-each>
									<xsl:for-each select="ACTPNM">
										<ctpNm>
											<xsl:value-of select="."/>
										</ctpNm>
									</xsl:for-each>
								</aEndRelative>
							</xsl:for-each>
							<SNCAttrs>
								<direction>CD_BI</direction>
								<rate>LR_PON</rate>
								<sncType>ST_SIMPLE</sncType>
								<xsl:for-each select="LINK/LINKATTR">
									<zEndRelative>
										<xsl:for-each select="ZBTE/ZPTPNM">
											<ptpNm>
												<xsl:value-of select="."/>
											</ptpNm>
										</xsl:for-each>
										<xsl:for-each select="ZBTE/ZCTPNM">
											<ctpNm>
												<xsl:value-of select="."/>
											</ctpNm>
										</xsl:for-each>
									</zEndRelative>
								</xsl:for-each>
								<ttAdditionalInfo>
									<xsl:for-each select="LINK/LINKATTR/ADMINSTAT">
										<adminStatus>
											<xsl:value-of select="."/>
										</adminStatus>
									</xsl:for-each>
									<aEndTPRole>NETWORK</aEndTPRole>
									<xsl:for-each select="LINK/LINKATTR/PDGLINK">
										<pendingLink>
											<xsl:value-of select="."/>
										</pendingLink>
									</xsl:for-each>
								</ttAdditionalInfo>
							</SNCAttrs>
						</SNC>
					</netSNCList>
				</xsl:for-each>
			</me>
		</InquireManagedElementResponse>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c)1998-2004. Sonic Software Corporation. All rights reserved.
<metaInformation>
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="..\..\..\..\poncvs_0630\pon\schema\phase1\PON\Common\InquireManagedElementResponse.xsd" destSchemaRoot="InquireManagedElementResponse" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="..\..\..\..\LFACS_0624\INQBTERP.xsd" srcSchemaRoot="INQBTERP" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"></template></MapperBlockPosition></MapperMetaTag>
</metaInformation>
-->