[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT Path
Hi All,
I need your help. I need to XSLT Path mapping. So, If it contains the value from the scheme in GEM, it matches with the value for toolfor matches with the rdf value in this URL (http://purl.org/gem/instance/GEM-MED/), it needs to extract the URI under rdf:about such as <rdf:Description rdf:about="http://purl.oclc.org/gem/instance/GEM-MED/#Students"> Here is my xml instance file: <audience> <toolfor scheme="GEM"> Students</toolfor> <beneficiary scheme="GEM"> Students </beneficiary> </audience> Here is my rdf expection: <dcq:mediator rdf:resource="http://purl.oclc.org/gem/instance/GEM-MED/#Students"/> Here is my current xslt: <xsl:template match="audience"> ?<dcq:mediator> <xsl:choose> ?<xsl:when test="contains (toolfor/@scheme,'GEM')"> <xsl:value-of select="normalize-space(toolfor)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space(toolfor)"/> ?</xsl:otherwise> ?</xsl:choose> </dcq:mediator> <gemq:beneficiary> <xsl:value-of select="normalize-space(beneficiary)"/> </gemq:beneficiary> </xsl:template> Could you help me? I'm deperated for your help. Thanks a lot, Best regards, Oknam Park
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|