Click here to Skip to main content
15,509,322 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: splitting the xmlnode based on nodelength Pin
harinit16-Jan-12 23:37
harinit16-Jan-12 23:37 
AnswerRe: splitting the xmlnode based on nodelength Pin
woopsydoozy16-Mar-12 8:59
woopsydoozy16-Mar-12 8:59 
QuestionVStudio and xsd.exe create different schema Pin
Tomerland4-Jan-12 11:22
Tomerland4-Jan-12 11:22 
Questionhow to look for a VALUE in an xml document. Not a node. Pin
dotolee12-Dec-11 8:22
dotolee12-Dec-11 8:22 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Tarun.K.S12-Dec-11 19:10
Tarun.K.S12-Dec-11 19:10 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Member 86251126-Mar-12 23:40
Member 86251126-Mar-12 23:40 
QuestionHow to load xml questions into jquery flipcard? Pin
burakmartonalti14-Nov-11 20:16
burakmartonalti14-Nov-11 20:16 
QuestionXslt Transformation Pin
tellaston134527-Oct-11 7:03
tellaston134527-Oct-11 7:03 
Hi Guys,
I am doing xslt transformation on a sample xmldoc using the xslt below. The problem I am having is its not matching on the 'Publication' tag. If I remove the namespace it works fine. Is there a way to get the match on the 'Publication' tag with the namespace in it?

Any help would be much appreciated,
Thanks.
----Sample XML------

XML
<?xml version="1.0" encoding="utf-8"?>
<Publication xmlns="http://www.mycompany.com/Sampleproject/XmlSchema">
  <PublicationDetails>
    <AgencyId>1</AgencyId>
    <PublicationId>PublicationId1</PublicationId>
    <PublicationDateTime>1900-01-01T01:01:01-07:00</PublicationDateTime>
    <OriginatingSystemName>OriginatingSystemName1</OriginatingSystemName>
    <DestinationSystemName>DestinationSystemName1</DestinationSystemName>
</Publication>


---- Sample Xslt ------
XML
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
  <xsl: output method="xml" indent="yes"/>

  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="Publication">
      <xsl:apply-templates select ="PublicationDetails"/>
  </xsl:template>


  <xsl:template match="PublicationDetails">
    <SubmittingAgency>
    </SubmittingAgency>
  </xsl:template>

</xsl:stylesheet>

QuestionException: "XsltContext is needed for this query because of an unknown function" Pin
NarVish20-Oct-11 23:57
NarVish20-Oct-11 23:57 
AnswerRe: Exception: "XsltContext is needed for this query because of an unknown function" Pin
NarVish21-Oct-11 1:49
NarVish21-Oct-11 1:49 
QuestionXPath problem with % value Pin
NarVish18-Oct-11 1:29
NarVish18-Oct-11 1:29 
AnswerRe: XPath problem with % value Pin
jschell18-Oct-11 9:52
jschell18-Oct-11 9:52 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 19:39
NarVish18-Oct-11 19:39 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 23:00
NarVish18-Oct-11 23:00 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 23:36
NarVish18-Oct-11 23:36 
QuestionHow can I put condition Pin
Noor201118-Sep-11 5:23
Noor201118-Sep-11 5:23 
GeneralRe: How can I put condition Pin
AspDotNetDev18-Sep-11 8:27
protectorAspDotNetDev18-Sep-11 8:27 
AnswerRe: How can I put condition Pin
Morgs Morgan22-Sep-11 5:40
Morgs Morgan22-Sep-11 5:40 
GeneralRe: How can I put condition Pin
Noor201130-Sep-11 1:43
Noor201130-Sep-11 1:43 
QuestionXSLT Pin
AndyInUK14-Sep-11 4:55
AndyInUK14-Sep-11 4:55 
AnswerRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 5:51
professionalBassam Abdul-Baki15-Sep-11 5:51 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 6:06
AndyInUK15-Sep-11 6:06 
GeneralRe: XSLT Pin
Rhys Gravell15-Sep-11 6:27
professionalRhys Gravell15-Sep-11 6:27 
GeneralRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 6:27
professionalBassam Abdul-Baki15-Sep-11 6:27 
AnswerRe: XSLT Pin
Andi Fandrich15-Sep-11 6:18
professionalAndi Fandrich15-Sep-11 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.