|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
can the usage of xsl predicates solve my problem?
Hi All,
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="checking.xsl"?> <pub> <Def serviceTemplateName="Siebel" serviceName="SiebelGetCampusCode" serviceVersion="1.0"> <Value type="Reference" deploymentGroup="Siebel" name="QueueName">OracleQueue</Value> <Value type="Reference" deploymentGroup="Siebel" name="SP_dbPool">dbPool_Siebel</Value> <Value type="Concrete" name="Executable">XXXXXXXXXX</Value> <Value type="Concrete" name="PP_CLASSPATH">XXXXXXXX</Value> <Value type="Concrete" name="SP_procCatalog">XXXXX</Value> <Value type="Concrete" name="SP_procName">XXXXXXXX</Value> <Value type="Concrete" name="SP_procSchema">XXXXXX</Value> </Def> <Environment name="PROD"> <DeploymentGroup name="Siebel"> <Deployment name="Siebel_PROD"> <Reference name="OracleQueue">AIA</Reference> <Reference name="dbPool_Siebel">Siebel</Reference> </Deployment> </DeploymentGroup> </Environment> </pub> my requirement is like this : Under pub/Def, i have "Value " nodes whose "type" attribute is either Concrete or Reference. i need to consider only those nodes whose "type " attribute is "reference" and i shud get the node value for these nodes. each of these node values exists as "name" attributes under Environment/DeploymentGroup/Deployment/Reference. i shud detect this node and retreive its node value. the relationship i am trying to arrive at is something like this: SP_dbPool: Siebel QueueName: AIA can somebody help me on this? thnks, subi.. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > can the usage of xsl predicates solve my problem? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|