logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Problem with XSLT: msg#00078

Subject: Problem with XSLT
I am having problem in including a prefix of an
imported XML schema in an XSLT document. 

Following is my XML document:
<?xml version = "1.0" encoding = "UTF-8"?>
<?xml-stylesheet type="text/xsl" href="NYOrder.xsl"?>
<Order xmlns = "http://dov.org/d"; 
xmlns:jxdd="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0";
>
<jxdd:DocumentDescriptiveMetadata>
<jxdd:DocumentID>temp_order_2167</jxdd:DocumentID>
</jxdd:DocumentDescriptiveMetadata>
</Order>

Following is my XSLT document:
<?xml version = "1.0" encoding = "UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:jxdd="http://www.it.ojp.gov/jxdd/prerelease/3.0.0.0";
>
<xsl:template match="/">
<html>
<head>
<title>Order</title>
</head>
<body>
<xsl:value-of
select="Order/jxdd:DocumentDescriptiveMetadata/jxdd:DocumentID"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

The tags that have "jxdd:" prefix indicate that these
element are from an imported schema. I cannot access
these elements from the above XSLT document.

Does anyone know how to resolve this?

Talha



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>